The addition of a particular type of impurity to a semiconductor in order to achieve a desired n-conductivity or p-conductivity: donor impurities are added to form an n-type semiconductor and acceptor impurities to form a p-type. The impurity added is the dopant. Doping is carried out by processes such as diffusion or ion implantation.