Yes, the Carboniferous Period! I learned about this a few years ago and was astonished.
> The world at beginning of the Carboniferous period was a humid, tropical place. Seasons, if any, were indistinct. The Carboniferous trees and plants resembled those that live in tropical and mildly temperate areas today. They grew in wetlands and were shallow-rooted. This, combined with their great height and ponderous weight, was a bad combination, because these enormous trees would regularly become uprooted and topple into the marshy ground, landing on other trees that preceded them.
> Here is where fate steps in. Although trees had evolved lignin and cellulose, no bacteria that could digest these woody substances had yet evolved. In fact, those bacteria would take another 60 million years to evolve. All this time huge trees kept growing, crashing into the swampy ground, and piling up on top of uncounted other trees, getting buried deeper and deeper into the ground. Over millions of years, subjected to the heat and pressure of deep burial, the carbon in these trees was converted into the fossil fuels we know and love today – coal, oil, and natural gas. All the fossil fuels we use were produced during this 60-million year period.
https://emagazine.com/carbon-in-trees/