A diode is a fundamental semiconductor device with two terminals, anode and cathode, that allows electric current to flow in one direction while blocking it in the opposite. This unidirectional conductivity is due to its internal structure, typically formed by joining a P-type semiconductor (rich in positive charge carriers) and an N-type semiconductor (rich in negative charge carriers), creating a PN junction.
 
When a forward voltage is applied (with the anode at a higher potential than the cathode), the PN junction becomes forward-biased, allowing current to pass through easily. Conversely, a reverse voltage (cathode at a higher potential) reverse-biases the junction, creating a high-resistance barrier that prevents significant current flow, except for a tiny leakage current.
 
Diodes find widespread applications across electronics: they rectify alternating current (AC) to direct current (DC) in power supplies, protect circuits from reverse voltage damage, act as signal detectors in radios, and serve as light emitters in LEDs (Light-Emitting Diodes) or light detectors in photodiodes. Their versatility, compact size, and reliability make them indispensable in everything from small consumer devices to large industrial systems.