It is possible to reconstruct main lattice due to its doping. The doping process by adding donor or acceptor impurities alters the Fermi level and replaces the CB in the n-type or replaces the VB in the P-type semiconductor which could narrow the distance between CB and VB
In p/n-heterojunction nanocomposite, dopant is impregnated to the crystal defects or distributed in different layers as well as leads to heterogeneity in the atomic distribution of unit cells. In addition, these dopant atom orbitals act as intermediate state or bridge the gap between valence and conduction band of electrons of the composite materials, resulting shorter energy for electronic transitions (lower bandgap).
The band gap of a semiconductor is the gap between bonding molecular orbitals(filled of electrons) or HOMO and antibonding molecular orbitals (usually empty of elements) or LUMO. When a semiconductor is dopped with other specious, some new bonds are formed and the number of molecular orbitals will be increased. On increasing the number of molecular orbitals the gap between the bonding and antibonding molecular orbitals is decrased. That is, the band gap of dopped semiconductor will be narower than the pure one.