Doping introduces impurities into a material, thereby altering its electronic properties. In n-type doping, additional electrons are added, causing the Fermi level to move closer to the conduction band. In p-type doping, electron deficiencies are created, causing the Fermi level to move closer to the valence band .