Leaves contain chlorophyll and take in carbon dioxide from the air to produce food for plants through photosynthesis. Photosynthesis uses carbon dioxide, water absorbed by the roots, and light to produce sugars like starch. This food is transported throughout the plant by sap in the stem to keep it healthy and help it grow. While photosynthesis produces food, the leaves also release oxygen as a byproduct.