The greatest empire-builder in Moroccan history was a Saharan tribesman who never learned to read — and who understood power better than any king of his age. Yusuf ibn Tashfin took a desert religious movement and made it an empire of two continents.
Ibn Tashfin was a Lamtuna Berber, a veiled Sanhaja nomad of the western Sahara — the litham, the face-veil of the desert, remained his mark even as an emperor; Christian chroniclers called him "the veiled king." He inherited leadership of the Almoravid movement in 1061 after his cousin Abu Bakr ibn Umar returned to the Sahara, and he immediately revealed a political imagination of the first order.
His method was systematic. First the economy: he seized Sijilmasa (c. 1055–1062), the terminus of the trans-Saharan gold trade, giving the movement the gold of the Sudan — the financial base of empire. Then the capital: in 1070 he founded Marrakech, building a city from nothing in the Haouz plain, with the Atlas as its backdrop and its water brought by the khettara underground channels his engineers dug. Then the state: he crushed the Barghawata heretics, subdued the Masmuda of the Atlas, and by the early 1080s ruled all of Morocco.
Then came the decision that made him immortal. In 1085 Alfonso VI of Castile took Toledo, the old Visigothic capital, and the taifa kings of al-Andalus — Seville's al-Mu'tamid above all — begged the Saharan emir for rescue. Ibn Tashfin consulted his jurists, crossed the strait with an army of desert cavalry and Andalusi levies, and on 23 October 1086 destroyed the Castilian host at Zallaqa. Alfonso escaped with a few hundred men; the reconquista stalled for a generation.
Ibn Tashfin returned to Morocco, but the taifas' weakness and their intrigues with Christian kings convinced him that rescue without rule was futile. Between 1090 and 1102 he deposed the taifa kings one by one — including his former supplicant al-Mu'tamid, exiled to Aghmat — and annexed al-Andalus to the Almoravid empire. He took the title Amir al-Muslimin, "Commander of the Muslims" — pointedly refusing the caliphal title, acknowledging the Abbasids in Baghdad while ruling an empire that owed Baghdad nothing.
He died in 1106 at nearly a hundred, having reigned forty-five years, and was buried in Marrakech, the city he founded. The empire he built stretched from the Senegal to the Ebro and minted the gold dinars that became the Mediterranean's trusted currency. Ibn Tashfin's achievement stands beside those of Charlemagne and the Norman kings: a desert nomad who built a bureaucratic empire, founded a world city, and held the line of Islam in Iberia. Morocco's imperial age begins with him.
Two details complete the portrait of the veiled king. The first is water: the khettara system his engineers built around Marrakech — gently sloping underground galleries tapping the Atlas aquifer, with vertical shafts for maintenance — was a Persian technology adapted to the Haouz with such mastery that khettaras still water the plain today; the city's palm groves, the largest urban palmeraie in the world, are Ibn Tashfin's living infrastructure. The second is the strange alliance with orthodoxy: when Ibn Tashfin deposed the taifa kings, he sought the blessing of al-Ghazali — the greatest theologian of Islam, then at the height of his fame — who reportedly approved, declaring the taifa rulers corrupt; whether the fatwa is authentic or Almoravid propaganda, it shows a Saharan emir playing the politics of religious legitimacy at the highest level. As for al-Mu'tamid, the poet-king of Seville whom Ibn Tashfin deposed and exiled to Aghmat: his prison poetry — verses of unbearable nostalgia for the Guadalquivir, written in a Moroccan village — is among the glories of Arabic literature, and Moroccans still visit his humble tomb at Aghmat. The conqueror and the poet, the empire and the elegy: Zallaqa's victor understood power, but Aghmat's prisoner understood loss, and Morocco kept both.
Impact on civilization
Part of Morocco: The Long Empire — more than eight centuries of continuous Moroccan statehood, from the Idrisids to the reigning Alaouites.
- The Cambridge History of Africa, vol. 3
- Encyclopaedia of Islam: Yusuf b. Tashfin
- Ibn al-Athir, al-Kamil fi al-Tarikh
- Amira Bennison, The Almoravid and Almohad Empires
- UNESCO — Medina of Marrakesh