Natural Gas is mainly extracted from the petroleum deposits deep beneath the earth. In fact, it occurs just above the layer of crude oil, as gases are lighter than oil.
Petroleum is a liquid which occurs naturally in rock formations. This consists of a complex mixture of different molecular weights of hydrocarbons, plus other organic compounds. Some petroleum-produced chemical compounds are also obtained from other fossil fuels.
The simple diagram of natural gas and petroleum deposits is given below: