Light energy is absorbed by chlorophyll molecules in the chloroplast, exciting electrons in these molecules which are emitted from the molecules in a process called photoionisation
Lost "high-energy" electrons move along carriers of an electron transfer chain in the thylakoid membranes of the chloroplast, releasing energy as they go
Protons then move back to the stroma through a channel in an enzyme called ATP synthase by facilitated diffusion, providing energy for ATP synthesis from ADP and Pi in a process called chemiosmosis