Plants use a process called photosynthesis to convert sunlight into food. In this process, plants use chlorophyll, a pigment found in their leaves, to absorb sunlight. This energy is then used to convert carbon dioxide from the air and water from the soil into glucose (sugar), which is the plant's food source. Oxygen is released as a byproduct of this process, which is essential for all living things.