A p–n junction is a combination of two types of semiconductor materials, p-type and n-type, in a single crystal. The "n" (negative) side contains freely-moving electrons, while the "p" (positive) side contains freely-moving electron holes. Connecting the two materials causes creation of a depletion region near the boundary, as the free electrons fill the available holes, which in turn allows electric current to pass through the junction only in one direction.
p–n junctions represent the simplest case of a semiconductor electronic device; a p–n junction by itself, when connected on both sides to a circuit, is a diode. More complex circuit components can be created by further combinations of p-type and n-type semiconductors; for example, the bipolar junction transistor (BJT) is a semiconductor in the form n–p–n or p–n–p. Combinations of such semiconductor devices on a single chip allow for the creation of integrated circuits.
