Photosynthesis is a pivotal process for life on Earth. Undertaken by green plants, algae, and certain bacteria, it uses the energy from sunlight to convert carbon dioxide and water into glucose and oxygen. This glucose provides the primary energy source for these organisms and many others up the food chain, while the oxygen produced is vital for the respiration of aerobic organisms, including humans.