Thermal power plants are designed to generate electricity by harnessing thermal energy. The process involves a thermodynamic cycle where heat is used to produce mechanical work, which in turn drives an electrical generator.