A diode is a name of a
semiconductor device which has two electrodes and has a property of flowing
current in one direction only at a forward voltage according to the Ohm's law
and hardly flowing in the opposite direction. The action of the diode current
in one direction is called rectification and is used to convert AC to DC.