A diode is a one-way valve for current. Turn one round and the bulb goes out; then see why every motor needs one across it, to catch the kick it gives when it is switched off. This workbench needs JavaScript.