A city founded twice
Fez was founded in 789 by Idris I, great-grandson of the Prophet Muhammad's cousin Ali, who had fled to Morocco after a failed uprising in Arabia and built the beginnings of a kingdom on the banks of the Fez River. His son, Idris II, expanded the settlement into a second city on the river's opposite bank a few decades later, and for a time Fez existed as twin walled towns facing each other across the water — one settled by families from Kairouan in Tunisia, the other by refugees from Córdoba in Andalusia. The two halves were eventually merged into a single city, but their double origin still shapes the medina's geography: Fes el-Bali carries two historic cores, not one, each with its own grand mosque.
That double settlement made Fez cosmopolitan from its first generation. Andalusian refugees brought Umayyad Spain's architectural and scholarly traditions; the Kairouan families brought North African and, through Kairouan's own trade links, wider Islamic-world connections. The blend produced a city wealthy enough, within a century of its founding, to build one of the most consequential institutions in the history of education.
The oldest university on Earth
In 859, a woman named Fatima al-Fihri used her inheritance to found a mosque in Fez that grew into the University of al-Qarawiyyin — recognized by UNESCO and Guinness World Records as the oldest continuously operating degree-granting institution in the world. Al-Fihri had migrated to Fez from Kairouan with her family as a young woman; when her father died and left her a substantial estate, she vowed to spend it building something that would serve her adopted city rather than herself.
The institution she founded drew scholars from across the Islamic world and, eventually, from Christian Europe — the philosopher Maimonides is believed to have studied or taught there, and the medieval Pope Sylvester II is said to have brought Arabic numerals back to Europe partly through contact with scholars trained in Fez. At its height under later dynasties, Al-Qarawiyyin held hundreds of students at once, enough that entire madrasas were built in the surrounding streets just to house them — several of those residential colleges, carved in cedar and stucco, are still standing and open to visitors today.
The Marinid gamble
Fez's architectural high-water mark arrived under the Marinid dynasty, which ruled Morocco from the city between 1244 and 1465. The Marinids were Berber tribesmen who had displaced the previous dynasty and needed to legitimize their rule quickly; they did it by becoming the most prolific religious and educational builders in Moroccan history. Nearly every madrasa a visitor sees in the medina today — the carved cedar, the zellige tilework, the muqarnas ceilings — dates from this single two-century window.
In 1276, the Marinids made an unusual decision: rather than expand the existing city, they built an entirely new royal capital half a mile from it, called Fes el-Jdid — New Fez. It housed the palace, the army, and eventually the Mellah, the Jewish quarter that became one of the oldest in Morocco and gave the walled city its distinctive three-part shape: two old medinas and a royal city, still legible in the street plan today. The gamble on parallel construction rather than expansion is why modern Fez reads less like one city than three that grew into each other.
An economy that never modernized — on purpose
The Chouara Tannery, the largest of the medina's three tanneries, dates to at least the eleventh century and still operates by hand, using the same stone vats, pigeon-dung softening process, and vegetable dyes it used under the Idrisids. It survives not as a museum piece but as a functioning business, supplying leather to the shops that ring Tannery Square — one of the few places in the world where a centuries-old industrial process is still the industry, not a re-enactment of one.
That pattern repeats across the medina's craft economy: brass workers, weavers, and woodcarvers still occupy the same narrow lanes their trades have used for generations, largely because the medina's physical structure never allowed the kind of mechanization that reorganized craft production elsewhere. No street is wide enough for a delivery truck. Goods still move by handcart and pack mule, exactly as they did a thousand years ago — not as a tourist performance, but because the alternative has never been physically possible.
The world's largest car-free city
Fes el-Bali is generally recognized as the largest car-free urban area on Earth: roughly 9,400 alleys and lanes, many barely wide enough for two people to pass, wind through a walled district that still houses well over 100,000 residents. UNESCO listed the medina as a World Heritage Site in 1981, citing it as one of the most extensive and best-preserved historic Islamic cities anywhere.
That absence of vehicles is not a planning choice retrofitted for tourism; it is the medina's original ninth-century street grid, never widened because widening it was never possible without demolishing the city it was built to be. The result is a place where the practical logistics of daily life — a family moving furniture, a shop restocking, a delivery of sheet copper for the brass workers — still run on the same footpaths a visitor walks on.
What Fez asks of you
Fez rewards slowness in a way few other Moroccan cities do. Marrakech's medina has been substantially reorganized around tourism; Fez's has not, and the difference is immediately legible — working workshops outnumber souvenir stalls, and it is entirely possible to spend a day in the medina without another visitor in sight. The tradeoff is real: without a fixed grid or ring road to orient against, getting lost is not a risk but a near-certainty, and most visitors' first afternoon here includes at least one wrong turn down a dead-end lane.
That disorientation is, in a strange way, the point. A city built before cars, before grid planning, before the idea that a street exists to move traffic efficiently, does not organize itself for a visitor's convenience — it organizes itself the way it always has, and asks the visitor to adapt to it rather than the reverse. Few places left on earth still make that particular demand.