In photocatalysis, CdS absorbs photons, leading to the excitation of electrons from the valence band to the conduction band, creating electron-hole pairs. These charge carriers can then participate in redox reactions. For example, in water splitting, the excited electrons reduce protons to produce hydrogen, while the holes oxidize water to produce oxygen.