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 light independent reactions. In the light dependent reactions, chlorophyll absorbs sunlight and uses it to convert water to oxygen and produce ATP and NADPH. In the light independent reactions, also known as the Calvin cycle, the ATP and NADPH produced are used to convert carbon dioxide into glucose which provides energy for plant growth. Photosynthesis is essential as it produces the oxygen and food on which nearly all life on Earth depends.