Diode Works both on AC and DC but the purpose on both are different. ... But in dc circuit diodes are used for different purposes like Reverse Protection (because of its Unidirection property), And voltage Regulator , modulation, Frequency Signalling ,waveshape clipping etc.