User:John R. Brews/Draft

A semiconductor diode is a two-terminal device that conducts current in only one direction, made by joining a p-type semiconducting layer to an n-type semiconducting layer.

Electrical behavior
The ideal diode has infinite resistance (conducts zero current) for the reverse voltage polarity and has zero resistance for the forward bias polarity. The pn-diode is not ideal.