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 sunlight is absorbed to make ATP and NADPH, and the light-independent reactions of the Calvin cycle where carbon is fixed into glucose using ATP and NADPH. This process is essential as it provides oxygen and food for other organisms.