The addition of foreign atoms to the crystal lattice of a semiconductor in order to change its electrical properties.
Phosphorus atoms contribute extra electrons, producing n-type semiconductors and Boron atoms produce electron deficiency forming p-type semiconductors.