Heat engines are devices that convert thermal energy into mechanical work by utilizing a cyclic process. They operate on the principle of transferring heat from a high-temperature source to a low-temperature sink, allowing for the extraction of work during this process. Heat engines are fundamental to understanding energy conversion and efficiency as outlined by the laws of thermodynamics.