Fossil fuels are fuels formed from the remains of ancient organisms. The main fossil fuels are coal, petroleum, and natural gas. They are formed over millions of years from the decomposition of buried plant and animal matter. Fossil fuels are non-renewable resources and are an important source of energy that are used worldwide in transportation, manufacturing, heating, and electricity generation, but their extraction and use also poses environmental risks such as oil spills.