Green leaves use the energy from the sun in tiny energy factories called chloroplasts. Using chlorophyll, they convert the sun's energy into storable form in ordered sugar molecules. One of the electrons in chlorophyll is excited by energy from the Sun. It transfers that energy through many steps in a process which finally produces the highly ordered glucose structure.
Moore, et al., Botany