Photosynthesis is the process by which plants produce their own food, using water, carbon dioxide, and sunlight as raw materials. The byproducts are oxygen and sugars. It occurs in the chloroplasts of plant cells, specifically the mesophyll cells of leaves. Chlorophyll in the chloroplasts absorbs sunlight to drive the reaction that produces oxygen and sugars like glucose. Photosynthesis provides food for heterotrophs and oxygen for all organisms on Earth.