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 where light energy is captured to make ATP and NADPH using chlorophyll, and the light-independent reactions where carbon dioxide is fixed using ATP and NADPH to produce glucose. Key factors that influence photosynthesis are light, chlorophyll, temperature, carbon dioxide and water. Photosynthesis takes place in the chloroplasts of plant cells and is essential for converting sunlight into chemical energy that fuels life on Earth.