Electron-hole pairs are pairs of charge carriers generated when a semiconductor material absorbs energy. This energy can be in the form of photons (light) or thermal energy. When a photon with energy greater than or equal to the bandgap of the semiconductor hits the material, an electron is excited from the valence band to the conduction band, leaving behind a "hole" in the valence band.