Green plants and algae use photosynthesis to produce their own food, using light energy, carbon dioxide from the air, and water and minerals from the soil. The conditions plants are grown in, such as access to light, carbon dioxide, water and nutrients, can affect the rate of photosynthesis and plant growth. Leaves have structures like stomata and a layered internal structure that help them effectively capture carbon dioxide and light to carry out photosynthesis.