What does photosynthesis produce?

Photosynthesis produces glucose (C6H12O6) which is required by organisms for respiration, it also gives off bi-products of O2 and water, the oxygen is released into the atmosphere or recycled by the plant in its own respiration reactions.