Millions of years ago, the remains of animals and plants decayed and built up in thick layers. This decayed matter from plants and animals is called organic material. Over millions of years, as the soil and mud changed to rock, the organic material was trapped beneath it. Pressure and heat then changed some of this organic material into coal,some into oil, and some into natural gas. The main ingredient in natural gas is methane.