As we know, oil, gas and coal are called fossil fuels.

Their creation begins with the remains of plants that were dried and buried under tons of mud and soil for many years. When they are under a lot of weight, and at a lot of pressure then their temperature rises and then this fuel is made, before being processed to be ready for use.

But in aquatic areas, where there is not enough oxygen, plants are not eaten by bacteria and microorganisms. Thus, over the years, thick layers of plants are created that die and over time become the raw material for the creation of fossil fuels.

This is because plants absorb carbon dioxide and eventually their structure consists of carbon, oxygen and hydrogen. In smaller quantities there is nitrogen, sulfur and other elements. With tremendous pressure the oxygen and hydrogen are removed and only the carbon remains.

The quality of the coal produced depends on the percentage of carbon present in its mass. The higher this percentage, the better fuel is generated.

Oil is created in a similar way when plant residues accumulate and are pressed at high temperatures.

Under the same conditions with the largest temperature difference, natural gas is produced.

[Source: http://www.all-geo.org]