The Zenata Berber dynasty (1244–1465) that made Fez Morocco's golden-age capital.
The Marinids were the builders of Fez's golden age — the Zenata Berber dynasty that reunified Morocco after the Almohads, raised the madrasas that still define Moroccan art, and made the kingdom the greatest power of the western Mediterranean in the fourteenth century.
The Banu Marin were Zenata Berbers from the highlands between Taza and present-day Algeria, first hired as mercenaries by the crumbling Almohads, then their supplanters. The conquest was methodical: Abu Yahya took Fez in 1244, Abu Yusuf Yaqub (r. 1259–1286) took Marrakech in 1269, ending the Almohad caliphate and moving the capital definitively to Fez — the city the Marinids would make the jewel of the Maghreb.
Under Abu al-Hasan (r. 1331–1348), the Marinid sultanate reached its zenith: the Sultan briefly held Tlemcen and Tunis, controlled the strait, and intervened in Iberia — until the catastrophe of Río Salado (1340), where a Castilian-Portuguese coalition destroyed the Marinid army and closed the door to al-Andalus forever. Abu al-Hasan's son Abu Inan Faris (r. 1348–1358) — the great builder — presided over the cultural apogee even as the plague and dynastic murders began the long decline.
For it is as builders that the Marinids are immortal. No dynasty built for learning like them. Beginning with the Saffarin madrasa in 1271, they raised a constellation of schools across the kingdom: the Sahrij (1321–28), the Attarine (1323–25) — its courtyard of zellige, carved stucco, and cedar considered the perfect expression of Marinid art — and the masterpiece, the Bou Inania (1350–55), built by Abu Inan in the heart of Fez, with its marble ablutions hall, its bronze doors, its minaret facing the Qarawiyyin. The Marinid madrasa invented a building type — the school as total work of art, where geometry is theology — that the Saadians would imitate at Ben Youssef and that defines Moroccan architecture to this day.
The Marinids were also the dynasty of Ibn Battuta — the Tangier-born traveler (1304–1369) whose Rihla, dictated at the Marinid court in Fez, is the greatest travel book of the Middle Ages — and of Ibn Khaldun, who served the Marinid sultans and conceived the Muqaddimah, the founding work of sociology, in their service. The Fez of the Marinids was what Paris was becoming: the university city of the West, where the Qarawiyyin and the madrasas taught law, theology, astronomy, and medicine to students from three continents.
The decline was long: the Black Death, the fratricidal succession wars, the Portuguese seizure of Ceuta (1415) exploiting Marinid weakness, the Wattasid viziers' slow usurpation. In 1465 the last Marinid sultan, Abd al-Haqq II, was murdered in a Fez revolt, and the Wattasids took the throne. But the Marinids had given Morocco its definitive form: Fez as the spiritual and intellectual capital, the madrasa as the architectural signature, the Maliki-Qarawiyyin orthodoxy as the religious identity. Every Moroccan dynasty since has ruled in a country the Marinids designed.
The Marinid court's most famous servant never served it at home: Ibn Battuta dictated his Rihla at the Marinid court in Fez after thirty years of travel — from Mali to China, the longest journey of the pre-modern world — and the Sultan's patronage of the dictation made the Marinid court the publisher of humanity's greatest travel book. Ibn Khaldun's Marinid years were equally formative: as a courtier, diplomat, and occasional prisoner of the Marinid sultans, he observed the tribal-makhzen cycle at first hand, and the Muqaddimah's theory of asabiyya — group solidarity as the engine of dynastic rise and fall — is, among other things, a theory of Marinid history written by a man who lived it. The dynasty's endgame deserves its irony noted: the Portuguese seizure of Ceuta in 1415, exploiting Marinid civil war, was Europe's first permanent foothold in Africa — the Marinid collapse thus opened the age of European expansion, and the Saadian reconquest closed it. The Marinids built the schools; their successors would need the guns.
The Marinids (1244–1465) gave Morocco its classic form: Fez as the golden-age capital, the madrasa as the supreme architectural achievement (Bou Inania, Attarine), and the Qarawiyyin-centered learned culture that produced Ibn Battuta and hosted Ibn Khaldun. Their fourteenth-century sultanate was the greatest power of the western Mediterranean. The Marinid synthesis — Zenata Berber dynasty, Arab-Islamic learning, Andalusi art — is the cultural DNA of Morocco.