How do to recycle carbon during photosynthesis?

During photosynthesis, plants use energy from the sun to convert carbon dioxide (CO2) from the air into organic matter (such as glucose) and release oxygen (O2) as a waste product. The carbon is essentially "recycled" by being incorporated into organic compounds that the plant uses for energy and growth. This organic matter can then be broken down by decomposers (such as fungi and bacteria) or consumed by other organisms, so the carbon is continually cycled through the ecosystem. This process is important for maintaining the balance of atmospheric gases and supporting life on Earth.