The invention discloses a guardrail with a movable function and for rail traffic construction. The guardrail comprises a plurality of connection units and a plurality of support units, and two adjacent support units are connected by a connection unit; the connection units comprise stop levers and stop ropes, both ends of each stop lever are rotatably connected with rotating blocks through bearings, and a threaded rod is fixedly connected to one end, away from each stop lever, of each rotating block; and the support units comprise cylindrical bases, the upper surfaces of the bases are fixedly connected with frustums, the outer side wall of each frustum is fixedly connected with two symmetrical mounting bases and a lacing hole formed in one side of each mounting base and a connecting rod arranged on the other side of each mounting base, spherical support seats are fixedly connected to the top ends of the frustums, the outer side walls of the support seats are provided with threaded holes, and each stop lever is connected with the threaded holes in the two adjacent support units through the threaded rods at both ends. The guardrail with the movable function and for the rail traffic construction is simple in structure, easy to install, fix and dismantle, and can remind pedestrians and vehicles by reflecting light from reflectors at night.