LEDs are special diodes that emit light when connected in a circuit. LEDs work the same as a rectifier diode by allowing current to flow only in one direction.