Doping is the process of adding some impurity atoms in a pure or (intrinsic) semiconductor so as to increase the conductivity of a semiconductor. Doping can be done in two ways:
n-type dopant is added, or a pentavalent dopant is added to an intrinsic semiconductor, to form an n-type semiconductor.
When p-type dopant or a trivalent dopant atom is added to an intrinsic semiconductor, a p-type semiconductor is formed.