How is Oil Created?

Oil is generally created from the compaction of organic material in the bottom of oceans. This is necessary since sediment must cover the dead organic matter to slow its decay and reduce its exposure to oxygen.