A railing with light emitting diodes includes a rod, a base unit secured to the bottom, a lid secured to the top, an illuminating device mounted in the rod, and a controller. The illuminating device is provided with a plurality of lighting units to illuminate as a warning light for passerby to avoid from collision and as a decorative light to beautify the environment.