Provided are a locking mechanism, a device connector, a container connector, and a connecting device with which it is possible to prevent engagement from being released by a pull force while achieving improved operability. This locking mechanism 160a is provided with: a to-be-engaged part 78 of a container connector 20; and an engaging member 160 of a device connector 100. The engaging member 160 is provided with: an operating part 165; a fulcrum part 168 which is formed contiguously to the operating part 165 and which comes into contact with the container connector 20 when the operating part 165 is being pressed; an engaging part 161 which is formed contiguously to the fulcrum part 168 and which engages the to-be-engaged part 78; a deformation part 166 which is formed contiguously to the engaging part 161 and which moves the engaging part 161 by being bent as the operating part 165 gets pressed; and a fixation part 169 which is formed contiguously to the deformation part 166 and which is fixed to an edge of a hole 131.L'invention concerne un mécanisme de verrouillage, un connecteur de dispositif, un connecteur de récipient et un dispositif de connexion avec lesquels il est possible d'empêcher qu'une mise en prise soit libérée par une force de traction tout en obtenant une exploitabilité améliorée. Ce mécanisme de verrouillage (160a) est pourvu : d'une partie à mettre en prise (78) d'un connecteur de récipient (20) ; et d'un élément de mise en prise (160) d'un connecteur de dispositif (100). L'élément de mise en prise (160) est pourvu : d'une partie d'actionnement (165) ; d'une partie pivot (168) qui est formée de manière contiguë à la partie d'actionnement (165) et qui vient en contact avec le connecteur de récipient (20) lorsque la partie de fonctionnement (165) est pressée ; une partie de mise en prise (161) qui est formée de manière contiguë à la partie pivot (168) et qui vient en prise avec la partie à mettre en prise (78) ; une partie de déformation (166) qui