Skip to main content
EditionEnglish edition·Édition française
History · Morocco: The Long Empire

The Almoravids

Before Morocco had a name the world recognized, it had the Almoravids — the Sanhaja Berber movement that forged the first great Moroccan empire and carried its banner from the Senegal River to the Ebro.

← All history reports


Morocco 1040–1147

Before Morocco had a name the world recognized, it had the Almoravids — the Sanhaja Berber movement that forged the first great Moroccan empire and carried its banner from the Senegal River to the Ebro.

The story begins in the desert, as Moroccan stories so often do. Around 1040, the theologian Abdallah ibn Yasin founded a ribat — a fortified monastery — among the Sanhaja tribes of the western Sahara, preaching a stern, purified Islam. His disciples called themselves al-Murabitun, "those of the ribat": the Almoravids. What started as religious reform became, within a generation, a conquering state.

The movement's genius was its second leader, Yusuf ibn Tashfin (r. 1061–1106). A Saharan commander of extraordinary political vision, Ibn Tashfin understood that power in the western Islamic world flowed along two axes: the gold of the Sudan and the cities of the north. He seized Sijilmasa, the great trans-Saharan trading entrepôt, securing the gold route from the Ghana Empire. Then, in 1070, he founded Marrakech — "the Red City" — as his capital, planting Morocco's southern metropolis in the Haouz plain beneath the Atlas. Marrakech would remain a capital of Moroccan power for nearly a thousand years.

By the 1080s the Almoravids controlled the whole of what is now Morocco. Then came the call from across the strait. The taifa kings of al-Andalus, pressed by Alfonso VI of Castile — who had taken Toledo in 1085 — begged Ibn Tashfin for rescue. The Almoravid crossed to Iberia and on 23 October 1086 annihilated the Castilian army at Zallaqa (Sagrajas) near Badajoz. It was one of the most consequential battles of the Middle Ages: the Christian reconquista was halted for a generation, and Muslim Iberia was bound to Morocco.

Ibn Tashfin did not stop at rescue. Between 1090 and 1106 he annexed the taifa kingdoms one by one, uniting al-Andalus with North Africa in a single empire — the first time since the Umayyads that the western Mediterranean answered to one ruler, and this time the ruler sat in Marrakech, not Damascus or Córdoba. Under his son Ali ibn Yusuf (r. 1106–1143), the empire reached its zenith: from al-Andalus in the north to the Senegal in the south, from the Atlantic to Algiers. Almoravid gold dinars — the famous murabitun coins — became the standard currency of Mediterranean trade, so trusted that Christian kings imitated them.

The Almoravids were builders as well as conquerors. The Kutubiyya mosque's first stones, the walls of Marrakech, the great mosques of Tlemcen and Algiers — the austere, powerful Saharan style they imposed on Andalusi craftsmen created the visual language of the Maghreb. Their religious scholars made Marrakech a center of Maliki learning that drew students from across the Islamic west.

The empire fell as empires do: from within. The stern desert faith softened in the palaces of al-Andalus; a new reformer, Ibn Tumart, rose in the Atlas preaching against Almoravid laxity, and his Almohad disciples destroyed the dynasty in 1147. But the Almoravids had done something irreversible: they had made Morocco an empire, bound the Sahara to the Mediterranean, and fixed Marrakech on the map of world cities.

The Almoravids' most overlooked achievement is institutional: they made Maliki Islam the permanent religious identity of Morocco. Ibn Tashfin's jurists — above all the qadi of Marrakech — enforced the Maliki school with a rigor that shaped Moroccan religious life for nine centuries; the Maliki-Qarawiyyin orthodoxy that still defines the kingdom is an Almoravid inheritance. And behind the veiled king stood a remarkable woman: Zaynab al-Nafzawiyya, Ibn Tashfin's wife, a political mind the chroniclers credit with his rise — she managed the treasury, advised the campaigns, and embodied the Saharan tradition of powerful women that startled Andalusi observers. The dynasty's material signature survives in Marrakech's Qubbat al-Barudiyyin, the domed ablutions pavilion with its breathtaking carved dome — the oldest Almoravid monument, where the sebka and muqarnas vocabulary of all later Moroccan art was first rehearsed in stone. When the Almohads took the city in 1147, they buried the Almoravid palace under their own kasbah; but they kept the Maliki law, the gold dinar, and the imperial idea. The Almoravids lost the throne and won the future.

At a glance: 1040–1147 · Dynasty

Impact on civilization

Part of Morocco: The Long Empire — more than eight centuries of continuous Moroccan statehood, from the Idrisids to the reigning Alaouites.

Related in Universal Encyclopedia: The Almohads · The Wattasids
Sources:
  • The Cambridge History of Africa, vol. 3
  • J. F. P. Hopkins, Medieval Muslim Government in Barbary
  • Encyclopaedia of Islam: al-Murabitun
  • UNESCO — Medina of Marrakesh
  • Amira Bennison, The Almoravid and Almohad Empires

Across the Bureau

What is the Alaouite dynasty?What was Moroccan independence in 1956?Morocco — Country ProfileHistory of Morocco — TimelineThe Alaouite dynasty: Morocco's unbroken throneThe Amazigh: North Africa's first peopleDid Morocco acquire 36 Atmos 2000 self-propelled artillery guns?Did Morocco acquire 600 FIM-92K Stinger Block I MANPADS missiles?