Photosynthesis has two phases: the light-dependent reaction and the light-independent reaction. In the light-dependent reaction, chlorophyll uses energy from sunlight to split water molecules and produce oxygen, ATP, and NADPH. These products are then used in the light-independent Calvin-Benson cycle to convert carbon dioxide into glucose using ATP and NADPH as an energy source. The oxygen, glucose, and regeneration of ATP/NADPH are essential for sustaining life.