Structures contained by a leaf convert the energy in sunlight into chemical energy that the plant can use as food. Chlorophyll is the molecule in leaves that uses the energy in sunlight to turn water (H2O) and carbon dioxide gas (CO2) into sugar and oxygen gas (O2) in which this procedure is named photosynthesis.