A self-locking device for locks comprising a lock housing, a lock cylinder, and a plug-in foot, the plug-in foot having locking points, the lock housing having receiving spaces for inserting the plug-in foot, a plug-in element being provided in the lock housing for locking the plug-in foot, characterized in that a self-locking device is present in the lock housing, the plug-in element automatically engaging the locking point of the plug-in foot when the plug-in foot is inserted into the lock housing, this self-locking device comprising a locking element that can move in the direction of
insertion of the plug-in foot, the locking element being arranged in the lock housing, the locking element having a
normal state and a compressed state, a first stop portion being provided on the locking element, said first stop portion extending into the movement track region of the plug-in element,wherein a second stop portion is provided on the locking element, which extends into the
insertion track area of the plug-in foot, wherein the first stop portion extends into the movement track area of the plug-in element and limits the movement range of the plug-in element when the locking element is in the
normal state, wherein the plug-in foot presses on the second stop portion of the locking element and puts the locking element into the compressed state when the plug-in foot is inserted into the lock housing, wherein a first elastic element is provided in the lock housing, which puts the locking element back from the compressed state to the
normal state.