Plants use a process called photosynthesis to make food using sunlight. During photosynthesis, plants take in carbon dioxide from the air, water from the soil, and sunlight. Using the energy from sunlight, plants convert the carbon dioxide and water into glucose (sugar) and oxygen. This glucose is used as food for the plant, providing energy for growth and development.