Photosynthesis is the process by which plants, algae and some bacteria turn light, water and carbon dioxide into energy-rich compounds and oxygen.