This little circuit allows to connect a LED to line voltage. Two issues have to be solved for that: LEDs cannot cope with such a high AC voltage, and the current has to be limited to ca. 15mA. The first issue is simply solved with a diode that eliminates the voltage in reverse-biasing. To limit the current of the LED a capacitive resistor is used.