When a semiconductor material, such as titanium dioxide (TiO2), absorbs light energy greater than or equal to its band gap, electrons are excited from the valence band to the conduction band. This leaves behind holes in the valence band, creating electron-hole pairs. The efficiency of this process depends on the material's ability to absorb light and the energy of the incident photons.