Which two things need to be perfect in order for petroleum to form

In order for petroleum to form, two things need to be perfect: organic matter and geologic conditions.

1) Organic matter: Petroleum is derived from the decayed remains of ancient marine organisms such as plankton and algae. These organic materials, usually rich in carbon, need to be present in sufficient quantities to serve as the source for petroleum formation. This organic matter typically accumulates in large quantities in marine environments over millions of years.

2) Geologic conditions: For petroleum to form, specific geologic conditions are required. The organic matter needs to be buried and subjected to high pressure over extended periods of time, which causes it to undergo a process called diagenesis. Heat generated by the Earth's internal processes further transforms the organic matter into petroleum. Adequate temperature, pressure, porosity, and permeability of the surrounding rocks are crucial for the formation and preservation of petroleum. Additionally, the presence of a suitable trap or reservoir rock, such as porous sandstone or limestone, is essential for the accumulation and storage of petroleum.