This lecture covers the second law of thermodynamics and the maximum efficiency theorem for a heat engine with two heat sources. It explains that all heat engines with two heat sources have the same maximum efficiency as the ideal Carnot engine, which depends only on the temperatures of the sources. The lecture also discusses the Clausius inequality and the consequences of irreversibility in real machines.