Plants use photosynthesis to produce their own food. Photosynthesis takes place in chloroplasts within plant leaves and involves using energy from sunlight, carbon dioxide from the air, and water to produce sugars that the plant uses for food. This process also produces oxygen as a byproduct. Photosynthesis is essential for all life on Earth as it provides food for plants and oxygen for animals to breathe.