the diode is the pn junction device used to rectify ac signals in one direction.
it allows current in one direction and stops in the other direction and its ability to conduct in one direction make it useful in dc power supplie.there are many types of diode.