Thermal power plants generate electricity through a Rankine cycle where water is heated to produce steam that spins a turbine connected to a generator. The main components are a boiler, turbine, generator, and condenser. Thermal power plants can be classified based on their fuel source such as fossil fuels, nuclear, or biomass. Nuclear power plants produce heat from nuclear fission to create steam similarly to thermal plants. Hydroelectric power harnesses the kinetic energy of moving water by passing it through turbines to spin generators. Dams, run-of-river designs, pumped storage, tides, and underground methods are different ways to generate hydroelectric power.