When light hits a semiconductor material, it excites electrons from the valence band to the conduction band, creating electron-hole pairs. These charge carriers can participate in redox reactions at the semiconductor-electrolyte interface. For example, in water splitting, the excited electrons reduce protons to form hydrogen, while the holes oxidize water to oxygen.