Abstract: We discuss the intimate connection existing between information theory and thermodynamics. We focus on two complementary aspects: 1) the gain of information with Maxwell's famous demon and 2) the erasure of information with Landauer's principle. We finally present recent experiments that have for the first time demonstrated the equivalence between information and thermodynamics.