Petroleum was formed from dead organisms that got buried in the sea millions of years ago. These dead bodies got covered with layers of sand and clay. Lack of air, high temperature, and high pressure transformed these dead organisms into petroleum and natural gas.