Fez
Morocco
The first water clock constructed in the Muslim world was a complex, 12-hour, brass and copper marvel built in 1357 on the eastern wall of the Great Mosque of Fez al-Jadid. Its purpose was not merely to tell time, but to arbitrate between the city’s rival Islamic law schools, the Maliki and Shafi'i madhhabs, whose prayer times, based on differing astronomical calculations, had fallen into perpetual conflict. The clock, designed by a Sufi mystic named Abu al-Hasan, attempted to impose a single, mechanical truth upon a city where time itself was contested. It failed within a generation, its intricate mechanisms falling silent, but its existence speaks to a fundamental tension in Fez: a persistent drive to impose order upon a place whose very soul is multiplicity, a deep, narrow river valley that became a crucible for empires, scholarship, and art.
Fez occupies a strategic cleft in the Middle Atlas Mountains, where the Wadi Fes and Wadi Jawahir rivers converge to carve a fertile, defensible corridor between the arid plains to the north and the high mountains to the south. The city climbs the valley’s steep, ochre-colored slopes from an elevation of roughly 380 meters at the riverbeds to over 420 meters at the crests of its ancient walls. This topography is not a backdrop but the central actor in Fez’s story. The land proposed a reliable water source from dozens of natural springs and two seasonal rivers; humans responded by channeling that water into a labyrinthine system that would define the city’s life for a millennium. The decision by Idris I, a refugee descendant of the Prophet Muhammad, to establish his capital here in 789 CE was not arbitrary. He chose a site on the right bank of the Wadi Fes, a place shielded by hills, rich in timber and clay, and blessed with the water necessary for purification, irrigation, and craft. His son, Idris II, expanded the settlement to the left bank in 809, founding Madinat Fas, a new town to house Arab families from Kairouan and Andalusia. These twin settlements, Al-ʿĀliyā and Al-ʿAwiyā, set a pattern of duality—Andalusian and Maghrebi, scholarly and commercial, royal and artisanal—that would repeat and fracture throughout Fez’s history.
The genius of Fez’s early inhabitants was their mastery of hydrology. They engineered a gravity-fed network of canals, seqiyas, that branched from the main rivers and springs into every neighborhood. This system did more than supply drinking water. It powered the city’s economic engine: the tanneries, dye pits, potteries, and forge workshops that required vast quantities of flowing water. The most famous of these industrial zones, the Chouara Tannery, established by the 11th century, is a direct consequence of this hydraulic infrastructure. Its stone vessels, filled with mixtures of pigeon droppings, cow urine, and natural dyes, rely on continuous water circulation to process hides into the soft leather for which Fez, or fassi, workmanship became renowned. The water also fed public fountains, hammams (bathhouses), and the interior courtyards of grand houses, creating microclimates of coolness and scent amidst the dense urban fabric. This practical relationship with water evolved into a spiritual and aesthetic one; the founders of the University of al-Qarawiyyin, established in 859 by Fatima al-Fihri, a woman from the Kairouan community, ensured its mosque and library complex had its own dedicated water source, seeing purity as a prerequisite for piety and learning.
The 11th century brought a political and architectural cataclysm that would permanently reshape the city’s layout. The Almoravid dynasty, a Berber empire from the Sahara, conquered Fez in 1070. Finding the two rival cities on opposite banks a source of continuous strife, the Almoravid sultan Yusuf ibn Tashfin ordered the walls between them torn down and a single, unified city created. He commissioned a new set of fortified walls and gates, like Bab Bou Jeloud, though the current gate is a 20th-century reconstruction. More importantly, the Almoravids expanded and unified the water system, building bridges and new canals, physically stitching the divided city into one entity. This act of forced unity did not erase Fez’s inherent dualities but channeled them into its internal geography. The city became a palimpsest of quarters, or foundouks: the Andalusiyyin quarter for migrants from Islamic Spain, the Kairouaniyya quarter for those from Tunisia, and later, the Mellah, a Jewish quarter established in 1438 near the royal palace. Each community maintained its own mosques, markets, and customs, yet all were bound by the shared, circulatory system of water and commerce.
Fez reached its intellectual and artistic zenith under the Marinid dynasty, which ruled from 1244 to 1465. The Marinids shifted the seat of royal power to a new, separate fortified city on a broad hill to the west, Fez al-Jadid (New Fez), in 1276. This decision was again dictated by land. The old city, Fez al-Bali, was by then a dense, impenetrable maze unsuitable for the ceremonial needs of a court and its military garrisons. Fez al-Jadid provided space for a royal palace, vast gardens, barracks, and the Mellah. This created a tripartite urban structure: the original medina (Fez al-Bali), the new royal city (Fez al-Jadid), and the modern Ville Nouvelle established by the French in the 20th century. The Marinids, while governing from their separate citadel, became unparalleled patrons of the old city. They founded the Bou Inania Madrasa in 1351-1356, a theological college whose exquisite zellij (mosaic tilework), carved cedar wood, and stucco calligraphy represent the peak of Maghrebi architecture. They built maristans (hospitals) and libraries, cementing Fez’s status as the preeminent center of Islamic learning in the western Mediterranean, a rival to Cairo and Baghdad.
The city’s decline began with the rise of the Saadi dynasty in the 16th century, which favored Marrakesh, and was accelerated by the Alaouite sultan Moulay Ismail’s decision in the late 17th century to make Meknes his capital. Fez’s economic base, however, proved resilient. Its tanneries, weavers, and metalworkers continued to produce goods of such quality that they maintained trade networks across the Sahara and into Europe. The land sustained this artisanal economy long after political power had departed. The surrounding Saïs plain provided barley, olives, and wool; the Middle Atlas forests supplied cedar and oak for construction and toolmaking; the rivers continued to turn mill wheels. Fez did not become a ghost city but a repository, its rhythms slowing, its physical fabric hardening into a monument of a past golden age.
The French protectorate, established in 1912, imposed a new and lasting geographic order. General Hubert Lyautey, the first Resident-General, made a consequential decision: he would preserve Fez al-Bali as a living historic artifact and build an entirely new administrative city on the empty plateau to the west. The Ville Nouvelle, with its wide, radial boulevards, French cafes, and government buildings, was a classic exercise in colonial urban planning, designed for control, hygiene, and separation. This created the modern duality of Fez: the “modern” administrative city and the “traditional” medina. Lyautey’s preservationist policy inadvertently froze the medina’s development, preventing the insertion of modern infrastructure like wide roads or sewer lines, which has led to profound conservation challenges in the centuries since.
Today, Fez al-Bali is a UNESCO World Heritage site, its 9,400 streets, blind alleys, and covered souks housing a population of over 150,000. The conversation between land and people continues in practical and contentious ways. The old water channels, though still functioning, are under strain from pollution and groundwater depletion. The famous tanneries, while a tourist attraction, pose environmental and health hazards. Restoration projects, often funded by international bodies, painstakingly repair historic riad houses and madrasas, while residents navigate the pressures of tourism, unemployment, and the desire for modern amenities within a medieval urban plan. The University of al-Qarawiyyin still operates, making it arguably the oldest continuously operating degree-granting university in the world.
The story of Fez is etched in the wearing down of stone steps by a thousand years of footsteps, in the mineral-rich runoff from the tanneries that stains the riverbanks, and in the call to prayer that echoes from the Karaouiyine minaret, first built in the 10th century, bouncing off the high walls of the canyon-like streets. It is a city where the physical constraints of a river valley forced a vertical, dense, and interconnected existence, where every resource—water, clay, animal hides, human intellect—was used with a thrifty, transformative intensity. The failed water clock on the mosque wall is a fitting symbol: Fez has never been governed by a single, imposed timepiece. Its time is the cyclical time of craft and prayer, the slow time of geological erosion, and the abrupt time of dynastic change, all flowing together like the waters of the Wadi Fes through its ancient, hand-laid canals.