Plants use photosynthesis to capture sunlight using chlorophyll in their leaves. The sunlight is used to combine water and carbon dioxide to produce glucose and oxygen. The glucose is used by the plant for energy and growth, while the oxygen is released from the leaves. The process involves sunlight being absorbed by chloroplasts in leaf cells, which then use the energy to produce sugar and oxygen through a two-step chemical reaction combining water, carbon dioxide, and sunlight.