The sun is the ultimate source of almost all kinds of energy on earth, either directly or indirectly. Fossil fuels (coal, oil and gas) are the transformed forms of plants (and animals) which once lived on the earth and grew capturing the energy of the sun.