The invention discloses a hydraulic reversing mechanism. The hydraulic reversing mechanism comprises an upper joint, a center shaft, a guide ring, an upper shell, a guide pin, a connection nipple, a compression spring, a lower shell, a limiting sleeve and a lower joint, wherein the upper joint is connected with the center shaft, the guide ring is arranged between the upper joint and the upper shell, and the upper shell, the connection nipple, the lower shell and the lower joint can be slidably arranged on the outer side of the center shaft. The guide pin is arranged on the upper shell, a guidegroove is formed in the portion, corresponding to the guide pin, of the center shaft, the guide pin can rotate in the guide groove, a compression cavity is defined by the connection nipple, the lowershell, the lower joint and the center shaft, and the compression spring and the limiting sleeve are arranged in the compression cavity. The hydraulic reversing mechanism has the benefits that the hydraulic reversing mechanism can be used for rotational reversing of a sand washing tool, the washing operation is more sufficient, no atomization is generated, and the washing capacity is ensured. According to the hydraulic reversing mechanism, reversing is achieved under the hydraulic action, the structure is simple, and convenience is brought to installation, disassembly and maintenance. The large-discharge-capacity cleaning work can be met, and rotary jetting to the washing tool can be achieved.