I think you are confused. A diode does not light up. An LED (light emitting diode) lights up. A diode is used to prevent current from flowing in the reverse direction. An LED will also prevent current in the reverse direction, but the voltage limit (before it is damaged) is usually much lower then for a diode.