Middle Ages · state
Marinid dynasty
Marinid sultans filled Fez with carved and tiled madrasas, and one of them had Ibn Battuta's travels written down at his court.
The Banu Marin were a tribe of the Zenata Berbers. After serving the Almohads for a time, they turned against them in the thirteenth century, made Fez their capital and in 1269, under Abu Yusuf Yaqub, captured Marrakesh, ending Almohad rule in the western Maghreb. In 1276 they founded a royal new town beside Fez, Fes el-Jdid, where the first mellah, or Jewish quarter, in Morocco later grew up.
The Marinids sponsored Maliki Sunni learning and built madrasas, colleges for students and scholars, in city after city, and Fez enjoyed a golden age. Abu al-Hasan took Tlemcen in 1337 and Tunis in 1347, briefly ruling from southern Morocco to Tripoli. But a Portuguese and Castilian army crushed his forces at Río Salado in 1340, and the Black Death and revolts followed. His son Abu Inan, who deposed him in 1348, built the Bou Inania madrasa in Fez, the largest of them all, and had the travels of Ibn Battuta written down.
Abu Inan was murdered by his vizier in 1358, and after him the viziers held the real power. From 1420 the Wattasids, a related family, ruled in the sultans' name, and in 1465 a revolt in Fez overthrew and killed the last Marinid sultan, Abd al-Haqq II.
Read more on Wikipedia
Sources: en.wikipedia.org/wiki/Marinid dynasty, en.wikipedia.org/wiki/Bou Inania Madrasa (Fez), en.wikipedia.org/wiki/Ibn Battuta

