Photosynthesis is the process by which plants, algae, and some bacteria use sunlight, water and carbon dioxide to produce oxygen and energy in the form of glucose. It occurs in two stages: the light-dependent reactions and the Calvin cycle. In the light reactions, solar energy is absorbed and used to convert water to oxygen and energy carriers like ATP and NADPH. In the Calvin cycle, the energy from the light reactions drives the reduction of carbon dioxide and production of glucose. Chlorophyll, located in chloroplasts, absorbs light and drives these reactions. Plants are green because chlorophyll reflects green light while absorbing other wavelengths.