We know that fossil fuels are formed from decayed plants and animals that have been converted to crude oil, coal, natural gas by exposure to heat and pressure in the earth's crust over millions of years.
Since fossil fuels cannot be replenished by natural means at the same rate that it is consumed that’s why they are known as non-renewable sources of energy.