The answer is photosynthesis. During photosynthesis, energy from the Sun is stored in the bonds of sugar molecules. The energy of sunlight is converted into chemical energy stored in the chemical bonds. Plants use sunlight to convert carbon dioxide and water into sugar molecules and oxygen.