Thermal energy comes from heat and motion of atoms and molecules. Thermal energy is used to generate electricity from sources like coal, nuclear, and geothermal. Coal is a main fuel source for thermal power plants. Coal is pulverized and blown into a boiler to burn and heat water into high pressure steam. This steam spins a turbine connected to a generator to produce electricity. The steam is then condensed back into water to repeat the process. While coal is a cheap fuel, it pollutes the atmosphere with greenhouse gases, acid rain, and mercury.