The growth of giant lycophytes and tree ferns reduced atmospheric CO2 levels, leading to global cooling at the end of the Carboniferous.