Plants produce food through the process of photosynthesis. Photosynthesis occurs in the leaves and uses water from the soil, carbon dioxide from the air, and energy from sunlight to produce sugar, which is the plant's food. The roots take in water and nutrients from the soil, while the stems transport water and nutrients to the leaves. The leaves contain chloroplasts where photosynthesis takes place and oxygen is released as a byproduct. Plants are producers that make their own food through photosynthesis to support other living things in the ecosystem.