A device for clamping a rotatably mounted shaft element, comprising: a housing element having an annular housing portion (220a, 220b), wherein said rotatably mounted shaft element can be arranged to extend in axial direction through an inner region of said annular housing portion (220a, 220b); an elastically deformable annular clamping ring element arranged in said annular housing portion (220a, 220b) of said housing element, wherein said clamping ring element comprises a cross-sectional profile (250a, 250b, 250c) comprising a first profile portion which extends radially inward and protrudes radially toward said rotatably mounted shaft element through an annular circumferential opening of said annular housing portion (220a, 220b), and at least a second profile portion (250a, 250b) which extends transversely to said first profile portion; a pressure chamber which is formed in said annular housing portion (220a, 220b) of said housing element and comprises at least one pressure chamber portion (270a; 270b) arranged radially on the inner side adjacently to said at least one second profile portion (250a; 250b) of said clamping ring element; wherein said rotatably mounted shaft element, in a rest state of said clamping ring element, can be clamped by frictional connection with said first profile portion of said clamping ring element protruding towards said shaft element, and wherein the frictional connection between said shaft element and said first profile portion for releasing the clamping of said shaft element is releasable by said clamping ring element being elastically deformable radially outward by application of pneumatic or hydraulic pressure of said pressure chamber. a housing element having an annular housing portion (220a, 220b), wherein said rotatably mounted shaft element can be arranged to extend in axial direction through an inner region of said annular housing portion (220a, 220b); an elastically deformable annular clamping ring element arranged in said annular housing portion (220a, 220b) of said housing element, wherein said clamping ring element comprises a cross-sectional profile (250a, 250b, 250c) comprising a first profile portion which extends radially inward and protrudes radially toward said rotatably mounted shaft element through an annular circumferential opening of said annular housing portion (220a, 220b), and at least a second profile portion (250a, 250b) which extends transversely to said first profile portion; a pressure chamber which is formed in said annular housing portion (220a, 220b) of said housing element and comprises at least one pressure chamber portion (270a; 270b) arranged radially on the inner side adjacently to said at least one second profile portion (250a; 250b) of said clamping ring element; wherein said rotatably mounted shaft element, in a rest state of said clamping ring element, can be clamped by frictional connection with said first profile portion of said clamping ring element protruding towards said shaft element, and wherein the frictional connection between said shaft element and said first profile portion for releasing the clamping of said shaft element is releasable by said clamping ring element being elastically deformable radially outward by application of pneumatic or hydraulic pressure of said pressure chamber.