Fossil fuels are comprised of three main types: coal, oil, and natural gas. Coal formed from plant matter that accumulated in swamps millions of years ago, became buried, and was subjected to heat and pressure over time. Oil is formed similarly from decayed plant and animal matter and is extracted using massive drills. Natural gas is composed of remnants of decayed organisms subjected to pressure underground and is used for heating, cooking, and some vehicles.