Diodes are mainly used for rectification of a.c. current for use by many electrical appliances.
Rectification is the conversion of sinusoidal waveform into unidirectional (non-zero) waveform. It can be basically defined as change of alternating current into direct current.