You searched for: “biogenic theory
biogenic theory
The theory that fossil fuels represent the altered remains of ancient plant and animal life deposited in sedimentary rocks, and therefore have a biological origin.

Generally accepted in preference to the abiogenic theory that hydrocarbon deposits became part of the earth as it formed.