In PEC systems, a semiconductor material is immersed in an electrolyte and connected to an external circuit. When the semiconductor absorbs light, it excites electrons from the valence band to the conduction band, creating electron-hole pairs. These charge carriers can then move to the surface of the semiconductor where they drive chemical reactions.