This disclosure relates to the field of guardrail technology. One embodiment of this disclosure provides a warning guardrail, which includes posts, protective components, a warning light, a lampshade, and a solar panel. The number of posts is at least two, and the protective components are disposed between two adjacent posts. The warning light is disposed on the top of the post; the lampshade is disposed on the top of the post and located around the warning light; the solar panel is disposed on the top of the lampshade and is electrically connected to the warning light. This technical solution solves the technical problem in related technologies where, in low light conditions at night, pedestrians are unlikely to notice the warning guardrail, thus failing to effectively serve its warning function.