Doping introduces impurities into the semiconductor material, which significantly affects carrier concentration and controls the conductivity of the material.
For example, if the semiconductor is doped with impurities that provide extra electrons, the concentration of electrons (majority carriers) will increase. On the other hand, if impurities are introduced that create extra holes, the concentration of holes (majority carriers) will be affected.