because they form over millions of years through the decay, burial and compaction of rotting vegetation on land (coal), and marine organisms on the sea floor (oil and gas).
(they; form; over millions of years)
they
form
over millions of years