A hydraulic rotary motor (5, 5') with a stator and a rotor movable with respect to the stator including - a motor housing, out of which an output shaft, which is rotatably mounted in the motor housing, extends, - at least one rotor space in form of a circular ring, which is arranged in the motor housing and is bounded by the motor housing and the output shaft and is arranged concentrically with the output shaft, - a rotor, which is arranged in the at least one rotor space and is rotationally fixedly connected to the output shaft and is rotatable about an axis of rotation of the output shaft, wherein the rotor has a rotationally symmetrical, stepped or curved contour on its outer periphery with an even number of protrusions and spaces situated between them, - an even number of inlet passages and outlet passages, which are connected to the rotor space and each have the same spacing from one another in the direction of rotation of the rotor and communicate, uniformly distributed, with a circulation region of the spaces in the rotor space, wherein the number of the inlet passages and outlet passages is smaller than the number of the protrusions or spaces on the rotor, and - an inlet control, which is integrated into the motor housing and includes control elements, which, acted on by a hydraulic pressure, follow the contour of the rotor in engagement with it, characterised in that - the control elements are constructed in the form of pivotal control flaps, which close the associated inlet passage in the vicinity of protrusions and open it in the vicinity of spaces, - the inlet passages communicate radially with the outer peripheral surface of the rotor space and are connected in a straight line with an annular supply passage, which is arranged outside the rotor space concentrically with the outer peripheral surface of the rotor space, - the outlet passages communicate axially with a flat side of the rotor space and with an annular discharge passage, which extends outside the rotor space concentrically with the outer peripheral surface of the rotor space on the flat side of the rotor space, and - at least one controlled bypass passage extends outside the rotor space from the inlet passages to the outlet passages and/or from the supply passage to the discharge passage. - a motor housing, out of which an output shaft, which is rotatably mounted in the motor housing, extends, - at least one rotor space in form of a circular ring, which is arranged in the motor housing and is bounded by the motor housing and the output shaft and is arranged concentrically with the output shaft, - a rotor, which is arranged in the at least one rotor space and is rotationally fixedly connected to the output shaft and is rotatable about an axis of rotation of the output shaft, wherein the rotor has a rotationally symmetrical, stepped or curved contour on its outer periphery with an even number of protrusions and spaces situated between them, - an even number of inlet passages and outlet passages, which are connected to the rotor space and each have the same spacing from one another in the direction of rotation of the rotor and communicate, uniformly distributed, with a circulation region of the spaces in the rotor space, wherein the number of the inlet passages and outlet passages is smaller than the number of the protrusions or spaces on the rotor, and - an inlet control, which is integrated into the motor housing and includes control elements, which, acted on by a hydraulic pressure, follow the contour of the rotor in engagement with it, characterised in that - the control elements are constructed in the form of pivotal control flaps, which close the associated inlet passage in the vicinity of protrusions and open it in the vicinity of spaces, - the inlet passages communicate radially with the outer peripheral surface of the rotor space and are connected in a straight line with an annular supply passage, which is arranged outside the rotor space concentrically with the outer peripheral surface of the rotor space, - the outlet passages communicate axially with a flat side of the rotor space and with an annular discharge passage, which extends outside the rotor space concentrically with the outer peripheral surface of the rotor space on the flat side of the rotor space, and - at least one controlled bypass passage extends outside the rotor space from the inlet passages to the outlet passages and/or from the supply passage to the discharge passage.