Thermodynamics is presented as an application of mechanics to the study of systems of many particles. It defines the concepts of temperature and heat. Are exposed basics of the kinetic theory of gases. It describes the basic principles of thermodynamics. Finally, we analyze relevant applications in the construction of heat engines and refrigerators.