The utility model discloses a spiral swinging hydraulic device capable of being mechanically locked at any angle, which comprises a cylinder
barrel, a spiral output shaft, a front end cover, a rear end cover, a
piston, a disc spring and a thrust ring, the spiral output shaft is arranged in the cylinder
barrel, the two ends of the spiral output shaft penetrate through the front end cover and the rear end cover respectively, the spiral output shaft further penetrates through the
piston, the thrust ring and the disc spring, the spiral output shaft is provided with a
piston connecting part and a boss connecting part, and a piston protruding ring protruding outwards is arranged in the middle of the piston and is connected with the inner wall of the cylinder
barrel in a sealed mode. The cylinder barrel is provided with a right-handed rotation oil inlet and a left-handed rotation oil inlet which are respectively communicated with the right-handed rotation oil inlet area and the left-handed rotation oil inlet area; the disc spring is arranged between the rear end cover and the thrust ring, and the thrust ring is movably connected with the cylinder barrel without rotation. In the using process, the gear shaft can be stably stopped at a certain position for a long time and can be effectively locked, and work is safe and reliable.