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.
A bridge rectifier is used in full wave rectification. The current flows in the same direction in both half cycles.