In electronics, doping is the process of adding certain chemical elements to a semiconductor in order to change its electric conductivity. These elements are tiny impurities. This is done to create diodes that make electricity go in one direction, or to make transistors and semiconductor switches.