Petroleum is formed under the earth's crust by chemical changes in:
Petroleum is also known as crude oil is a fossil fuel that was formed from the remains of marine organisms and plant wastes (vegetable).
Millions of years ago, algae and plants lived in shallow areas of the seas. After dying and sinking to the sea-bottom, the organic material mixed with other sediments and was buried. Over millions of years under high pressure and high temperature, the remains of these organisms transformed into fossil fuels by the various chemical processes. Coal, natural gas, and petroleum are all fossil fuels that formed under similar conditions.
Hence option D is correct.