You are talking about fossil fuels, formed over millions of years from ancient plant and animal remains.
Types
Coal: From decomposed plant matter in swamps.
Petroleum (Oil): From marine organisms like algae and plankton.
Natural Gas: From marine organisms under higher pressure and temperature.
Formation Process
Accumulation, sedimentation, heat and pressure, transformation into hydrocarbons.
Impact
Fossil fuels are non-renewable and burning them releases greenhouse gases, contributing to climate change. Alternatives include solar, wind, and biofuels.