Overview

A lock is a mechanical or electronic device designed to prevent access, movement, or manipulation of an object unless released by an authorized action. Locks are used to secure doors, cabinets, boxes, vehicles and many kinds of equipment. While the word also names hydraulic structures that raise and lower boats, for those see locks on waterways and Lock (water transport). Traditional locks are operated with keys, while modern systems often use PINs, cards or wireless credentials such as electronic cards and mobile tokens.

Types and main components

Locks vary widely in design but share common elements: a casing, a bolt or latch that secures the object, and an internal mechanism that controls the bolt. Major categories include:

  • Mechanical cylinder locks (pin-tumbler, wafer, lever)
  • Padlocks and deadbolts for doors and gates
  • Combination locks that use numeric or sequence inputs
  • Electronic and electromechanical locks with keypads, cards or wireless access

History and development

Locking devices have existed for millennia. Early examples appear in ancient civilizations where wooden or metal mechanisms secured chests and doors. Over centuries designs evolved: wards and lever systems in the medieval period, precision pin-tumbler concepts in antiquity refined into modern cylinder locks, and the 19th–20th centuries saw mass-produced secure locks and the later introduction of electrical control and digital authentication.

Uses, importance and examples

Locks serve practical, legal and commercial roles: they provide safety and privacy for homes and businesses, protect assets in transit or storage, and enable regulated access control in buildings and infrastructure. Examples range from a simple luggage padlock to integrated access-management systems used by hotels, offices and transportation hubs.

Security, vulnerabilities and professional care

All locks have strengths and limitations. Mechanical wear, poor installation or weak designs reduce effectiveness. Attacks on locks vary in approach; designers and standards bodies aim to limit exploitability while locksmiths and manufacturers improve resilience. Locksmiths are trained to install, maintain and repair locks and to advise on appropriate security grades and legal requirements.

Standards, maintenance and notable facts

Standards and certifications describe performance under force, resistance to manipulation, and durability. Regular maintenance—lubrication, alignment and timely replacement—extends service life. While no system is invulnerable, choosing the right lock for the risk, following recognized standards, and combining mechanical devices with access control and monitoring yields the most reliable protection.