It is during these reactions that the energy from sunlight is absorbed by the pigment chlorophyll in the thylakoid membranes of the chloroplast. The energy is then temporarily transferred to two molecules, ATP and NADPH, which are used in the second stage of photosynthesis.