Light energy is absorbed by pigments, which excites electrons. These energized electrons are then passed through a series of electron carriers, creating a flow of electrons. This flow of electrons generates ATP and NADPH, which are used in the light-independent reactions of photosynthesis.