Book of Knowledge · Category VI, Chapter 4 · 1206
Four bolts on a door: one key, four directions
One turn of a key, and four bolts slide out of the back of a door: up, down, left and right, all driven by a single toothed bronze wheel. Take the key away and a hidden spring blade locks the wheel, so nothing can move them. Turn the key in interactive 3D, lift the tray, then watch the film.
Four bolts, four directions
“They are four bolts made from wood or from iron, on the back of a door, but placed in four different positions. They are locked and opened by a key. One closes to the right, one to the left, another upwards and another downwards.” Al-Jazarī's aim is plain: “There is no place in the four bolts through which an evildoer can enter.” From the street there is only a small hole in the middle of the door, and once the key is withdrawn, “nothing can move them except the key”.

The parts
- Two long bolts (ḥ, m), slightly shorter than the door is tall, 2 fingers thick and 4 fingers wide.
- Two short bolts (d, z), slightly shorter than the door is wide, square (4 fingers), with a recess cut to half their depth between a mark at one third of the length and a mark 2 fingers from the other end.
- About ten triangular teeth on each bolt, cut in its narrow side and facing the centre.
- A wooden tray he calls the beehive (qafīr), with grooves to take the bolts crosswise; the short bolts lie on top of the long ones.
- The pulley (bakra, w): a cast-bronze wheel without a groove, as thick as two bolts, filed into triangular teeth all round, with a short cylinder that fits a hole in the door and a bore with a narrow slit.
- On its other side a smaller toothed wheel, half a finger thick, and against it an iron blade (mishqāṣ, e): a sharpened bow-shaped strip nailed to the tray, its tip between the small wheel's teeth, with a hole in its middle and an opening behind it.
- The key (a): an iron rod with a tongue (shaziya) on it.

How it works
The key goes in from outside, through the door and “right through the pulley”, and its tongue fills the narrow keyway in the bore. Pushed home, it presses the blade back into the opening behind it, so the blade's tip comes out of the small wheel's teeth: the wheel is free. “When the key is turned the pulley rotates and pushes each bolt in one of four directions.” The top of the wheel moves one way and the bottom the other; one side rises and the other falls. The bolts are closed; “they open in the reverse direction”.


Quick test
A thief slips a knife through the gap and pushes one bolt. What happens? A, that bolt slides back; B, all four slide back; or C, nothing moves?
Show the answer
C. A bolt can only move if the wheel turns, and the blade in the small wheel's teeth will not let it. Only the key lifts the blade.
What the text leaves open
- No size is given for the door, the wheel or the key, so our proportions, the wheel's sixteen teeth and the quarter turn are a reconstruction.
- The text says the tray is “4 fingers” thick; Hill takes this to mean four finger-lengths, since the two bolts together are already 4 fingers.
- Hill notes slips in the drawings: the wheel in Fig. 172 is drawn square, and in Fig. 170 the short bolts are not shown on top of the long ones at every crossing (the Dublin manuscript gets this right).
- The thicker portions left at the ends of the bolts are a puzzle; Hill guesses they held the bolt ends steady and perhaps limited their travel. The iron guides in our model are our own guess.
The first rack and pinion?
No. More than a thousand years earlier, the water clock of Ctesibius of Alexandria, as described by Vitruvius, had a float carrying a toothed rod that turned a toothed drum. What is new in al-Jazarī's door is the layout: one wheel, four racks, four directions, and a catch that only the key can release. Donald Hill wrote that nothing resembling either of al-Jazarī's locks had come to his attention. In 1874 a US patent for “bolt-works for safe and vault doors” used pinions driving racks to throw bolts up, down and sideways at once: the same idea, found again, with no known link.

Watch the film
0:00One key, four bolts, four directions0:21Title0:321206: four bolts on the back of a door0:52No place for an evildoer1:08The bolts1:27The beehive tray1:38The bronze wheel1:45The small wheel and the blade1:56The key2:06The blade is lifted2:14Turn: four bolts into the frame2:30Key out: locked2:38Quick test: the thief's knife3:07What the text leaves open3:34Myth-check: the first rack and pinion?3:55The same idea in 18744:08Next: the boat clock4:16One key, one wheel, four bolts4:28More machines
Questions & answers
What are al-Jazari's four bolts on the back of a door?
Chapter 4 of Category VI of al-Jazarī's Book of Knowledge (1206) describes four bolts of wood or iron on the back of a door, locked and opened by a key: one closes to the right, one to the left, one upwards and one downwards. His aim: 'there is no place in the four bolts through which an evildoer can enter', and when the key is withdrawn nothing can move them except the key.
How does one key move four bolts?
Each bolt has about ten triangular teeth facing the centre. A cast-bronze wheel (he calls it a pulley, bakra), as thick as two bolts and toothed all round, sits in the middle and meshes with all four. Turned by the key, its top moves one way and its bottom the other, one side rises and the other falls, so each bolt is pushed in its own direction.
Why can't a thief push a bolt back?
A bolt can only move if the wheel turns. On the back of the wheel is a smaller toothed wheel, and a sharpened, bow-shaped iron blade nailed to the tray rests with its tip between its teeth, so the wheel cannot turn. Only the key, pushed home through the wheel's bore, presses the blade back into an opening behind it.
What is the key like?
An iron rod with a tongue (shaziya) on it. It goes through a hole in the middle of the door, right through the wheel, and the tongue fills a narrow slot in the wheel's bore, so turning the key turns the wheel.
Did al-Jazari invent the rack and pinion?
No. The water clock of Ctesibius of Alexandria, described by Vitruvius, used a toothed rod turning a toothed drum more than a thousand years earlier. What is unusual here is one wheel driving four racks in four directions, with a catch only the key releases. Donald Hill wrote that he knew of nothing resembling either of al-Jazarī's locks.
Is there anything like it today?
Safe and vault doors throw bolts on several sides from one mechanism. A US patent of 1874 (No. 149,193) used pinions driving racks to move bolts up, down and sideways at once. There is no known link to al-Jazarī; it is the same idea found again.
How big was it?
The text gives the bolts' thickness and width in fingers (2 and 4 fingers for the long bolts, 4 for the short ones) but no size for the door, the wheel or the key. Our door, the wheel's tooth count and the bolts' travel are a reconstruction.
Sources
- Ibn al-Razzāz al-Jazarī, Kitāb fī maʿrifat al-ḥiyal al-handasiyya (The Book of Knowledge of Ingenious Mechanical Devices), 1206, Category VI, Chapter 4. English translation and notes: Donald R. Hill, 1974, pp. 202–203, 270 and 275 (Figs. 167–172, 49.1).
- Vitruvius, On Architecture IX.8 (the water clock of Ctesibius).
- US Patent 149,193, “Improvement in bolt-works for safe and vault doors”, M. Briggs, 1874.
- The 3D model is a reconstruction from al-Jazarī's text and Hill's notes; sizes, colours and setting are illustrative.
Next from the Book of Knowledge
Which machine should we open up next?
More clocks, automata and fountains are on their way. Tell us on YouTube which one you want next.