An endoscope and shaft system include an access shaft and an endoscope which can be inserted into the access shaft, the proximal end of the access shaft has a grip part, and the endoscope is held in a connecting piece. The connecting piece can be detachably connected to the grip part, and the connecting piece can be rotated about the longitudinal axis of the endoscope relative to the grip part when the connecting piece is connected to the grip part.