A lock is a device used to restrict access to an area or enclosure. It is the duty of the lock to restrict access until the correct key or combination is used to operate the lock. Most modern locks are a combination of a cylinder and a bolt. There several major types of locks with many high security locks being hybrid designs.
Locks have been made in Iran since at least the second millennium BCE. The most ancient lock, dating to the 13th century BCE, was excavated at the ziggurat of Choga Zanbil in Khuzestan. Throughout the Islamic period in Iran, locks were made in all shapes and sizes.