Photosynthesis is a process of capturing and transforming the energy of sunlight into chemical energy.