A diode is a foundational two-terminal semiconductor electronic component designed to allow electric current to flow easily in only one direction while blocking it from moving in the reverse direction. Because of this unique unidirectional behavior, diodes are used extensively across electronic circuits for power supply rectification (converting alternating current into direct current), signal demodulation, protecting sensitive circuits from voltage spikes, and regulating voltage levels.