Thermal energy is the energy transferred between bodies due to a temperature difference. It can come from natural sources like the sun or from human processes like burning fossil fuels. Fossil fuels like coal, oil, and natural gas are non-renewable sources of thermal energy that were formed over millions of years from the remains of ancient organisms. Coal is used for electricity production while oil and natural gas are used for transportation, manufacturing, heating and electricity generation.