Vorrichtung (1) zur Verriegelung eines ausziehbaren und/oder schwenkbaren Seitenteils (21) eines Bettes (2), welches zwischen einer Nichtbenutzungsposition, in welcher eine Bettseite zum Ausstieg eines Bettinsassen aus dem Bett freigegeben ist, und einer Benutzungsposition, in welcher die Bettseite gegen einen Ausstieg des Bettinsassen aus dem Bett gesichert ist, bewegbar ist, umfassend folgende Merkmale: – ein erstes Riegelteil (10), welches zumindest in einer Nichtbenutzungsposition des Seitenteils an einem beweglichen Teil (210) des Seitenteils (21) von diesem abnehmbar befestigbar ist und dazu geeignete Mittel aufweist, – ein zweites Riegelteil (11), welches an einem ersten Teil (20) des Bettes (2), von diesem abnehmbar befestigbar ist und dazu geeignete Befestigungsmittel (100, 101) und/oder geeignete Befestigungsstrukturen (1001, 1002, 1101, 1102) aufweist, und – einer Riegeleinrichtung (12) mit einem Riegel (122) und einem Gegenstück (121), – wobei das erste Riegelteil (10) und das zweite Riegelteil (11) in eine Position zueinander bringbar sind und mittels des Riegels (122) und des Gegenstücks (121) in dieser Position gegeneinander verriegelbar sind.The apparatus (1) for locking a sliding and / or pivotable side part (21) of a bed (2), which is between a not use position, in which a bed side for stepping out of a bed occupant, from the bed is released, and a use position, in which the bed side against a stepping out of the bed occupant is secured from the bed, can move, comprising the following features:– a first locking member (10), which at least in a not use position of the side part on a movable part (210) of the side part (21) of this can be removably fastened and means suitable for this purpose has,– a second locking member (11), which is fitted to the first part (20) of the bed (2), of this can be removably fastened and for this purpose, suitable fastening means (100, 101) and / or suitable fastening structures (1001, 1002, 1101, 1102), and– a locking