The course begins with an introduction to basic concepts as temperature, thermal equilibrium, work, heat, heat capacity and enthalpy. A statistical approach is applied to some simple model systems in order to introduce the second law of thermodynamics formulated in terms of the entropy. Heat engines and refrigerators are discussed as well as internal combustion engines and steam engines. Finally, the concept of free energy is introduced and applied to phase transformations.