Any electronic device that has only two electrodes. There are several different types of diode, their voltage characteristics determining their application. Diodes are most commonly used as rectifiers; those used for other purposes have special names.
The semiconductor diode consists of a simple p-n junction. Current flows when a forward bias is applied to the diode (see diode forward voltage) and increases exponentially (see diagram). A straight-line approximation of this forward characteristic allows a resistance value (the forward slope resistance) to be calculated from the slope of the straight line. Reverse bias produces only a very small leakage current until breakdown occurs. The now obsolete vacuum or valve diode is a thermionic valve that has an anode and cathode and also passes current only in the forward direction.
See also IMPATT diode; light-emitting diode; photodiode; PIN diode; tunnel diode; varactor; Zener diode.
https://learn.sparkfun.com/tutorials/diodes An introduction to diodes, on the sparkfun website