The invention discloses a building pipeline anti-knock device. The pipeline has the good anti-knock effect, mounting is convenient, the angle can be adjustable, the device can adapt to different-anglemounting, according to the building pipeline anti-knock device, the pipeline penetrates through a dual-U pipe clamp in an inserted manner, the dual-U pipe clamp limits left and right moving of the pipeline, one end of a steel pipe penetrates through the dual-U pipe clamp to clamp the pipeline, the steel pipe limits front and back moving of the pipeline, the other end of the steel pipe is connected with a connecting base, the connecting base is fixedly connected with the wall, the dual-U pipe clamp comprises two parallel U rings, heads of opposite sides of the two U rings are connected througha steel pipe ring, and outer threads are arranged on heads of the other opposite sides on the two U rings. The inner walls of the middles of the U rings are matched with the outer wall of the pipeline, the inner wall of the steel pipe ring is matched with the outer wall of the steel pipe, one end of the steel pipe penetrates through the position between the two U rings in an inserted manner, theouter threads on the two U rings are connected with a steel pie pressing plate, and the steel pipe pressing plate and the steel pipe ring jointly clamp the steel pipe for enabling the steel pipe to bekept still.