A light-emitting diode (LED) produces light through a process called electroluminescence. When a voltage is applied to the semiconductor material within the LED, electrons and electron holes are able to recombine, releasing energy in the form of photons. This energy is emitted as light, producing the characteristic glow of an LED.