At a glance
- Era
- The Crusades, Ayyubids and Mamluks
- Region
- al-Andalus & Europe

Quick facts
- Domain
- Water, irrigation and agriculture
- Kind
- Device
- First attested
- c. 1133 CE · 528 AH
- Era
- Middle period
- Where
- Toledo
- Attribution
- Contested
Who made it
- Al-Zarqali Inventor
The claim and its basis
The basins are credited to al-Zarqali in the manuscript tradition; but the account is a late compendium citing lost earlier sources, and it carries a rival report assigning the work to a Jewish astrologer.
Al-Maqqari's Nafh reports the baylatan made by an 'Abd al-Rahman' who heard of the talisman of Aren in India, with a Rabat manuscript note identifying this Abd al-Rahman as Abu al-Qasim Abd al-Rahman al-Zarqali. But al-Maqqari himself transmits a rival account blaming a Jewish astrologer named Hatim b. Rabuwa who brought the baths of al-Andalus to Toledo in 527 AH. No engineering drawing or contemporary construction record survives, so the attribution remains open.
Sources: Nafh al-Tib min Ghusn al-Andalus al-Ratib — al-Maqqari · Baylatan of Toledo — Kan historical-journal article · Al-Zarqali — MacTutor · Astrolabe — Bibliotheca Alexandrina Antiquities Museum · Safont noria photograph — Wikimedia Commons
Before it
- Andalusi hydraulic marvels — known waterwheels and norias predating the baylatan
How it works
Summary
In the Nafh al-Tib, Ahmad ibn Muhammad al-Maqqari tells the story of Toledo's baylatan: two great water basins in the city, credited to an 'Abd al-Rahman whom a Rabat manuscript note identifies as Abu al-Qasim Abd al-Rahman al-Zarqali — the famous Andalusi astronomer — after he heard of the talisman of the city of Aren in India that spun by itself from dawn to sunset. He is said to have had them built in a vaulted chamber in the Great River at Bab al-Dabbaghin, and they filled and ebbed with the moon's waxing and waning by half a seventh each day and night, full on the fifteenth night and emptied by the twenty-ninth as the moon waned, swallowing whatever water was drawn and refilling when emptied. They worked until the Christians took Toledo, whereupon Alfonso ordered one lifted to learn where its water came from; it was lifted in 528 AH and both stopped moving 1. No material trace of the device survives, and the attribution to al-Zarqali personally remains open because the account is a late compendium.
What it is
In Andalusi telling, the baylatan is a hydraulic device of the waterwheel or noria family re-engineered: two great basins set in the course of Toledo's river — the Great River at Bab al-Dabbaghin — inside a vaulted chamber, that is, a curved or roofed water-space within the current itself 1. What is claimed for the device is not water-lifting but timing: that the basins' filling and emptying should follow the lunar month rather than the day or a human hand, becoming in effect a celestial clock run by water. A 2023 study in the Kan Historical Journal presents it as "an engineering marvel of the waterwheels of al-Andalus," placing it within the living tradition of Andalusi noria engineering rather than as an isolated thing 2.
The world before it
The idea of water moving with time was not new in al-Andalus. The city itself was famous for its norias and waterwheels that lifted river water and distributed it through the city — to the point that moving water had become an everyday urban mechanism 2. But what is claimed for the baylatan is not lifting or irrigation but regulated cycle: that the change in water level itself should become a celestial measure of time. Toledo specifically was in the eleventh century a major scientific city — home to al-Zarqali, maker of the astrolabe and master of astronomical instruments — so the context in which the device is reported does not lack an atmosphere of instrument innovation 3 4. The taifa age of al-Andalus in general was an age of rivalry among the petty kingdoms for patronage of learning and craft, and many of the water and instrument marvels of that era arose in small courts rather than great capitals 2.
The story
The tale begins with hearing: that 'Abd al-Rahman heard of the talisman in the city of Aren in the land of India — that it spun by itself from the rising of dawn to the setting of the sun — and sought to imitate it in an Andalusi environment 1. He is said to have made two basins in a vaulted chamber in the Great River at Bab al-Dabbaghin, "and they filled and emptied with the moon's waxing and waning by half a seventh each day and night until they filled on the fifteenth night and emptied with the moon's waning until nothing remained in them on the twenty-ninth night" 1. Most wondrous in the account are the two self-correcting properties: "whoever drew water for them, they swallowed it; and whoever emptied them, they filled again at once" — as if the basins had a will of their own: draw water and they refill, empty water and they return to fullness 1. Then came the end: "they worked until the Christians took Toledo, and Alfonso ordered one of them lifted to learn where its water came from; it was lifted in 528 AH and their motion ceased" 1. And within the same text a rival report says the cause of their failure was a Jewish astrologer named Hatim b. Rabuwa who brought the baths of al-Andalus to Toledo in a single day in 527 AH and promised to make them fill by day and empty by night, but when one was lifted he could not restore it 1.
The maker(s)
The maker named in the account is 'Abd al-Rahman — in the Rabat manuscript Abu al-Qasim Abd al-Rahman ibn Muhammad al-Zarqali, Toledo's astronomer and inventor of his universal astrolabe and equatorium 1 3. His Muslim identity is documented in the museum record: Latin, Spanish and Hebrew writings on his life place him among the Muslim astronomers of al-Andalus, and the default Sunni frame records his affiliation in that milieu 3 4. But it must be said plainly: the attribution is late — al-Maqqari writes roughly two centuries after the device's destruction and relays sources that did not reach us — so the contemporary evidence does not establish that his hand built the basins, only that the Andalusi tradition credited them to him 5. This is why the museum records the attribution as contested, neither original nor legend.
How it works
The account gives no engineering mechanism — no drawings, no description of internal parts — but it does give a specific functional behaviour that can be summarised in four features 1. First, the place: a vaulted chamber in the body of the Great River at Bab al-Dabbaghin, meaning the two basins were submerged or surrounded by moving water, not merely set on a bank. Second, the cycle: filling and emptying by half a seventh each day and night with the moon's increase and decrease, reaching fullness on the fifteenth night and emptiness on the twenty-ninth. Third, compensation: whoever drew water they swallowed it, and whoever emptied them they filled again at once. Fourth, the end: one was lifted in 528 AH "to learn where its water came from," and the motion of both ceased — as if the mechanism were a single unit that could not be separated from its twin. The 2023 study attempts to read this behaviour within Andalusi waterwheel engineering, but the details of its mechanism remain unverified here 2.
The spread
The baylatan did not spread geographically — it is one device in one city — but the story itself spread: al-Maqqari transmitted it in his compendium, later Andalusi histories carried it, and it remains cited in modern studies of water marvels 1 2. More importantly, the tale carries a wider picture: Toledo after 1085 — a city that had lost Muslim rule yet kept its water infrastructure and its historiographical memory, so much so that its new Christian lord Alfonso ordered one basin raised to discover its secret 1.
What it was built on
On the account's own terms, the baylatan was built on two things: first, the model of the "spinning talisman" heard of at Aren in India — an Andalusi attempt to imitate an eastern magical mechanism with local hydraulic means 1. Second, the standing tradition of Toledo's waterwheels and norias — lifting water with water was already an older urban technology in the city, and the new device was probably a re-purposing of that tradition for a celestial rather than an irrigational reading 2. Neither can be confirmed, because the device's mechanism is unknown.
What was built on it
Nothing documented was built on the baylatan — it is a device people marvelled at and then lost. But tales like this fed a literary tradition: the "wonders of al-Andalus" that al-Maqqari collected, and the later literature of marvels that kept describing astonishing water machines 1. And today's image — the Safont noria in the same city — shows that the living tradition of waterwheels survived in Toledo itself, though it is not the reported device 6.
Impact on daily life
Its possible impact — if true — was scientific: a water clock measuring celestial time without sighting, useful for knowing prayer times and seasons to whoever lacked observation 1. But honesty requires saying we do not know whether the device was actually used for that purpose or was merely a marvel without practical benefit, because the source describes its behaviour, not a daily use 1.
How it changed history
The baylatan changed the history of al-Andalus not because it survived but because it was said to have existed: the tale of "the two basins that follow the moon" became one of the most famous stories of water marvels in Islamic literature, told in every account of Andalusi wonders 1. And its modern study — the 2023 article that reconsiders it as an engineering problem — is proof that the story still generates scientific questions eight centuries later 2. What can be said with confidence: there is no material trace, and where studies propose mechanisms they are hypotheses, not verifications 2.
Who invented it?
The honest answer: we do not know. The accepted version credits Abd al-Rahman al-Zarqali — a documented Andalusi astronomer — but the evidence is late and disputed: al-Maqqari himself transmits two reports, one blaming a Jewish astrologer, Hatim b. Rabuwa, for the device's failure 1. The museum records the attribution as contested, neither original nor legend: the tale is not a folk myth but a historical report preserved in a book, yet personal attribution to al-Zarqali awaits verification. If true, al-Zarqali's contribution would belong to the family of astronomical and mechanical instruments for which he is famous — his universal astrolabe and equatorium — but that is expectation, not evidence 3.
Today
No copy of the baylatan exists today in any museum or archaeological site — the device was built in a river course, and its destruction is reported before instruments were documented 1. The photograph displayed in this record is the Safont noria in Toledo — a living waterwheel on the Tagus, a member of the same tradition from which the baylatan is presumed to have come, but it is not the baylatan and does not represent it 6. The 2023 study is still trying to read the story as engineering, a reminder that the "lost" in history does not mean "impossible" but "unproven" 2.
Surviving examples
Only the text remains: al-Maqqari's passage in the Nafh al-Tib describing the baylatan in detail — place, behaviour and destruction — preserved in the Rabat manuscript tradition that identifies 'Abd al-Rahman' with al-Zarqali 1. That text is the sole direct witness; everything else — the 2023 study, modern noria photographs, al-Zarqali's biography — is context around the witness, not a substitute 2 3. And honesty requires saying the 2023 study, though it treats the tale as a serious engineering question, was read here only at abstract and bibliographic level — any mechanism or measurement details it contains remain unverified in this record 2.
In culture
The baylatan is part of the Andalusi "literature of wonders" — that kind of writing which gathered the strange marvels of al-Andalus: spinning machines, water behaving as if alive, cities keeping their secrets in water 1. The tale — even if not literally true — documents something real: that the Andalusis thought of water as a means of measuring time, not only of moving it, and that is an advanced engineering imagination which may be the first to have linked machine to heaven 2 3.
For young readers
Andalusi books tell of two wondrous basins in Toledo that filled and emptied with the moon's cycle: full on the fifteenth night, low by the twenty-ninth, and if anyone drew water they refilled at once. They worked a long time until one was lifted to learn its secret, and then both stopped. The story is real in the books, but we have no piece of it today — it is a narrative marvel that may also have been an engineering one.
References
Connections
- Invented by
- Al-Zarqali
- Exemplified by
- Baylatan of Toledo
People and things also explored
Baylatan of Toledo — twin water basins that followed the lunar month· Al-Zarqali's independent equatorium· The Toledan Tables· Al-Zarqali's universal astrolabe plate· Al-Zarqali's moving solar-apogee model· Cordoba· Toledo· Baylatan of Toledo
Sources
- Nafh al-Tib min Ghusn al-Andalus al-Ratib — al-Maqqari , p. 242-244
- Baylatan of Toledo — Kan historical-journal article
- Al-Zarqali — MacTutor
- Astrolabe — Bibliotheca Alexandrina Antiquities Museum
- Nafh al-Tib min Ghusn al-Andalus al-Ratib — al-Maqqari
- Safont noria photograph — Wikimedia Commons
Cite this page
islam.museum contributors. “The Toledo baylatan: twin basins credited to al-Zarqali working on the moon's cycle”. islam.museum, https://islam.museum/en/invention/zarqali-moon-timed-basins/. CC BY-SA 4.0. Last updated 2026-11-15.
Improve this page on GitHub · Report an error · Help complete it · JSON