The process you are referring to is called doping. In simple terms, doping is the method of intentionally introducing impurities into an extremely pure semiconductor to change its electrical properties, which increases its conductivity.
Semiconductors, like silicon or germanium, are materials that have electrical conductivity between conductors (like metals) and insulators (like glass). By adding impurities, we can control and enhance their ability to conduct electricity. These impurities are atoms of other elements that either have more or fewer electrons in their outer energy levels compared to those in the semiconductor.
When you add impurities with more electrons, it creates an n-type semiconductor because of the extra *negative* charge carriers (electrons). Conversely, adding impurities with fewer electrons makes a p-type semiconductor, as it creates 'holes' which act as positive charge carriers.
This process of doping is essential for creating various semiconductor devices, like diodes, transistors, and integrated circuits, which are foundational components in all electronic devices. Hence, doping plays a crucial role in the functionality and efficiency of electronic systems.