Alternating current is converted to direct current by
A rectifier is a device which converts a.c (alternating current) to d.c( direct current), which flows in only one direction. This process is known as Rectification.
This is done using p-n junction diode.
A p-n junction diode allows electric current in only forward bias condition and blocks electric current in revere bias conditions.
In other words, a diode allows electric current in one direction. This unique property of diode allows it to act like a Rectifier.