Fossil fuels are formed from the remains of ancient plants and animals. Over millions of years, heat and pressure transform these remains into peat, then coal, oil or natural gas. This process is known as fossilisation.