Fossil fuels are fuels formed from the remains of ancient organisms. There are three main types: coal, oil, and natural gas. Coal forms from peat and contains carbon. Oil forms from the remains of organisms buried under sediment and forms under heat and pressure. Natural gas forms in a similar way to oil and is lighter than air. Fossil fuels are important energy sources but their extraction and use also carries environmental risks like oil spills.