When visible light irradiates a photocatalyst, electrons in the valence band get excited to the conduction band, creating electron-hole pairs. These charge carriers can migrate to the surface of the photocatalyst and participate in redox reactions. For instance, in water splitting, the electrons reduce protons to generate hydrogen, while the holes oxidize water to produce oxygen.