It seems like Gaia really went on a bender in the late Carboniferous, getting drunk on oxygen. By some estimates, the atmosphere was over 30% oxygen back then, compared to 21% today. Living things took advantage of the opportunity. Insects apparently face an upper limit in size because they rely on diffusion through tracheas instead of forced respiration through lungs to get oxygen into their bodies. With more oxygen in the air, this limit was raised. The Carboniferous saw dragonflies with a wingspan up to 70 centimeters, and body lengths up to 30 centimeters, comparable to a seagull.
This happened because plants were turning carbon dioxide into organic matter and free oxygen, and the organic matter was accumulating. With carbon dioxide being removed from the atmosphere, the late Carboniferous and subsequent early Permian saw a reduced greenhouse effect, and global cooling. This was another Ice Age, with ice caps around the southern pole.
A lot of organic carbon ended up being buried. Much of the world’s coal, especially high quality anthracite, has its origin in Carboniferous tropical forests. Western Europe and eastern North America lay in the tropics at the time, and got a particularly generous allotment of coal. Three hundred million years later this bounty would fuel the early Industrial Revolution. (Thanks partly to some of my Welsh ancestors, who helped dig it up back in the day.)