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.They can basically be defined as change of alternating current into direct current.