Lock is a device that prevents a door or other object from being opened, moved, or operated. People use locks to help protect themselves and to guard their property against theft.