Latch

A moveable, usually spring-loaded pin or bolt, which is part of a lock mechanism, and engages a socket or clip on a door jamb, retaining the door closed.