Fossil fuels like coal, oil, and natural gas are formed from the remains of ancient plants and animals over millions of years. Coal forms from decayed vegetation, oil forms from animal and plant remains, and natural gas forms from buried organic matter. These fossil fuels are non-renewable resources that are burned for energy but also release greenhouse gases like carbon dioxide when combusted. Major oil spills can cause environmental damage by poisoning water and habitats.