When the material is a semiconductor, allowed energies of carriers remarkably are divided into ranges, a lower one called the valence band and a higher one called the conduction band separated by a bandgap of unused range of energies between those two bands.