Photosynthesis is the process by which plants, algae, and certain bacteria use sunlight, carbon dioxide, and water to produce glucose and oxygen. It occurs in two stages: the light reactions absorb sunlight and produce ATP and NADPH using water, and the Calvin cycle uses ATP, NADPH, and carbon dioxide to produce glucose in the chloroplasts of plant cells. The overall equation for photosynthesis is: 6CO2 + 6H2O + sunlight โ C6H12O6 + 6O2.