During the light-dependent reactions of photosynthesis, electron transport proteins in the thylakoid membrane use the energy from electron flow to pump hydrogen ions (protons) from the stroma into the thylakoid space, creating a gradient for ATP synthesis.