Photosynthesis is a two-stage process by which plants use sunlight, carbon dioxide, and water to produce oxygen and sugars like glucose. In the light reactions, chlorophyll in plant leaves absorbs sunlight to provide energy to convert carbon dioxide and water into oxygen and energy carriers like ATP. In the dark reactions, the energy carriers are used to produce sugars from carbon dioxide. Photosynthesis is essential for plants to survive and produces oxygen for other living things to survive.