A lock is a barrier placed on either a door or a container to attempt to block a player character from continuing. It can be overcome by either using the open lock skill, by bashing it directly, or by using a spell such as knock.