Plants need light for photosynthesis. During this process, plants use sunlight to convert carbon dioxide and water into glucose, which serves as food. Chlorophyll, a green pigment in the leaves, absorbs light energy. This energy splits water molecules, releasing oxygen into the atmosphere and combining hydrogen with carbon dioxide to form glucose.