The invention provides a water pouring mechanism for a closestool. The water pouring mechanism comprises a rack, a motor installing base, a jacking mechanism, a horizontal moving mechanism, a tool plate, the closestool, a buffer fixing block, multiple bearing pedestals, a first transmission shaft, a shaft end cover, a driven gear, a motor installing plate, a locking base, a driving gear, a motor,a chain wheel and a closestool follow-up fixing mechanism. According to the water pouring mechanism, the automatic water pouring function of the closestool is achieved, due to the design of the bufferfixing block, the function of buffering operation of a first telescoping air cylinder and a second telescoping air cylinder can be achieved, the first telescoping air cylinder and the second telescoping air cylinder drive the closestool together, in the turning over and water pouring process, collision is avoided, cracking is avoided, falling of the closestool is avoided, noise generated by falling or colliding of the closestool is avoided, the situation that the closestool slips and falls off, and accident work injuries occur can be avoided, a good production environment can be created for production workers, in the whole water pouring process, manual participation to operation is not needed, and therefore the water pouring efficiency of the closestool is improved greatly.