300-400 million years ago, marine plants, animals, and other organisms died and were deposited onto the ocean floor. Over time, the marine plants and animals were buried deeper and deeper by being covered by layers of sediments such as silt and sand. Over millions of years, under high pressure and temprature, these remains of organic matter transformed into oil and natural gas.