Doping (semiconductor)
The impurities are added to the silicon through multiple processes, including "Spin Coating".  A thin layer of phosphorus or boron, usually mixed with a liquid to help it spread out, is spun at high speeds on the silicon.  The mixture spreads out the phosphorous or boron, and then is baked.