A shaft of an endoscope including a locking coupling which is designed to connect the end piece of the shaft to a counter piece, and which includes a coupling piece which is mounted on the end piece or on the counter piece so that it can be slidingly moved transversely to the axis thereof, the coupling piece being designed so it can be placed, when being moved in a traverse manner, in or out of the locking engagement with the counter piece or end piece, the transverse bearing of the coupling piece is provided with a locking device which can be brought into contact for suppressing the transverse movement.