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 using chlorophyll, and the light-independent Calvin cycle where carbon is fixed into sugars like glucose using ATP and NADPH. Photosynthesis provides food for plants and oxygen for other organisms while consuming carbon dioxide.