A lock is a mechanical fastening device which may be used on a door, vehicle, or container. Commonly, it can be released by using a key or combination.
See also: Lock picking, Locksmith, Physical security