The invention relates to a rotary multi-way valve with pressure maintaining and shock preventing functions, and belongs to the technical field of fluid reversing valves. The technical problems that for an existing valve, a pressure maintaining function can not be achieved, operation is tedious, and misoperation is liable to be caused are solved. According to the technical scheme, the rotary multi-way valve with the pressure maintaining and shock preventing functions comprises a valve body, a valve element, a front end cover, a back end cover and a safety valve assembly and further comprises a valve element positioning sheet, a reset spring, a fastening screw and a spring base; a valve element hole is formed in the center of the valve body, a P-cavity annular groove is formed in the middle of the valve element hole, a T-cavity annular groove is formed in the end, close to the back end cover, of the valve element hole, the P-cavity annular groove communicates with an oil inlet, and the T-cavity annular groove communicates with an oil return inlet; the valve element is arranged in the valve element hole and can rotate around the axis of the valve element and axially move; two groups of inclined fluid working channels and two groups of parallel vertical fluid working channels are formed in the axial cross section of the valve body.