Aux Arcs answer is the only one here that answers the question properly.
The forests are carbon sinks and they bind much of the CO2 released into the atmosphere into their food and building material. This equation of photosynthesis shows this process.
6CO2 + 6H2O --> C6H12O6 + 6O2