Photosynthesis uses light energy, carbon dioxide, and water to produce oxygen and energy-rich organic compounds like glucose. It occurs in two stages - the light-dependent reactions where light energy is captured to make ATP and NADPH, and the light-independent reactions where CO2 is incorporated into organic compounds through the Calvin cycle. Chloroplasts contain chlorophyll and other pigments that absorb light for use in the photosystems. The energy from light drives electron transport and chemiosmosis to produce ATP, then electrons are transferred to NADP+ to form NADPH. These products fuel the Calvin cycle to reduce CO2 into glucose using the energy from ATP and NADPH.