Take in Carbon dioxide from the water through thinly pores called stomata (stoma), taking in water from the soil by their roots, sunlight is absorbed by chloroplasts in the cells, chlorophyll allows carbon and water to combine to form glucose, the energy for this reaction come from sunlight trapped by the chlorophyll, oxygen is given off as a waste product.