Some of the light energy is converted to chemical energy. During this process, a phosphate is added to a molecule to cause the formation of ATP. ... The ATP then provides energy to some of the other photosynthetic reactions that are causing the conversion of CO2 into sugars. During photosynthesis, energy from sunlight is captured and used to produce sugar molecules.