Humans of History

from the archive · Medieval era

Yusuf ibn Tashfin

1009 – September 2, 1106 · sovereign · military personnel

By The Keeper · Published
AI-assisted writing, automatically checked. Editorial process

Yusuf ibn Tashfin ruled the Almoravid movement from 1061 until his death in 1106, transforming a Saharan religious brotherhood into an empire that stretched from Senegal to the Ebro valley. He founded Marrakech around 1070 and made it his capital, then crossed into Iberia in 1086 and crushed a Castilian army at the Battle of Sagrajas. Within a decade he had absorbed most of the Muslim principalities of Al-Andalus, uniting western North Africa and southern Spain under a single Berber dynasty. Anyone asking who was Yusuf ibn Tashfin is really asking how a desert commander in his fifties came to reshape the politics of two continents.

Early Life

Yusuf ibn Tashfin was born around 1009 into the Banu Turgut, a branch of the Lamtuna, one of the Sanhaja Berber tribes that ranged across the western Sahara between southern Morocco and the Senegal river [1]. The Lamtuna were camel herders and caravan raiders, known to Arab geographers as "the veiled ones" because their men wound a dark cloth, the litham, across the lower face, a custom Yusuf kept throughout his life even as an emperor [2].

Almost nothing is recorded of his first four decades, which is unsurprising for a nomad born far from any court chronicler. What can be said is that the world of his youth was changing. In the 1040s a Lamtuna chief returning from pilgrimage recruited the jurist Abdallah ibn Yasin to instruct the desert tribes in Maliki Islamic law. The reform movement Ibn Yasin built, whose followers became known as the Almoravids (al-Murabitun), fused religious discipline with tribal military power and began conquering the caravan towns of the Sahara [1].

Yusuf joined this movement under his cousin Abu Bakr ibn Umar, who took command of the Almoravid forces after the deaths of Ibn Yasin and the first Lamtuna war leaders in the 1050s. By the time the movement pushed north across the Atlas mountains into the plains of Morocco, Yusuf had emerged as one of Abu Bakr's most trusted lieutenants [3].

Path to Prominence

The turning point in any Yusuf ibn Tashfin biography comes in 1061. Abu Bakr ibn Umar was called back to the Sahara to settle fighting among the desert tribes, and before departing he handed Yusuf command of the Almoravid forces in Morocco. He also released his wife Zaynab bint Ishaq al-Nafzawiyya, a wealthy and politically astute woman from the Aghmat region, whom Yusuf then married [3]. Zaynab is credited by the Arabic chroniclers with advising Yusuf shrewdly, and her resources helped him consolidate his position.

When Abu Bakr returned north a few years later expecting to resume command, he found his cousin firmly in control of a growing army and treasury. Yusuf met him with lavish gifts but made it clear, without open confrontation, that power had changed hands. Abu Bakr accepted the arrangement and rode back to the desert, where he continued campaigning in the south until his death, while Yusuf ruled the north with the title amir al-muslimin, commander of the Muslims, a deliberately modest style that acknowledged the Abbasid caliph in Baghdad as his superior [2].

Around 1070 Yusuf founded a garrison settlement on the plain north of the High Atlas, at a site with reliable water and command of the routes between the mountains and the Atlantic plains. That camp became Marrakech, the Almoravid capital and one of the great cities of the Islamic west, and it later gave its name to Morocco itself in many European languages [4].

Conquest of Morocco and the Maghrib

From Marrakech, Yusuf spent the 1070s subduing the rest of Morocco piece by piece. Fez, the old Idrisid capital and the commercial hub of the north, fell to the Almoravids in the mid 1070s after prolonged fighting, and Yusuf rebuilt its walls and enlarged the Qarawiyyin mosque [4]. His forces then pressed east along the Mediterranean corridor, taking Tlemcen, Oran, and eventually territory as far as Algiers in the early 1080s [1].

He also secured the Atlantic coast, taking Ceuta in 1083 after a long effort against its Suqut Barghawata rulers, which gave him a fleet and a secure crossing point to Iberia [3]. By the mid 1080s the Almoravid state controlled the western trans-Saharan gold trade at one end and the Strait of Gibraltar at the other, an economic position no Moroccan power had held before.

Administration followed conquest. Yusuf struck high quality gold dinars from Saharan bullion, coins so trusted that they circulated in Christian Spain, where they were known as marabotins [2]. He staffed his government with Maliki jurists, whose legal school became the official doctrine of the empire, and he kept taxation formally limited to the levies sanctioned by Islamic law, a policy that won him praise from religious scholars [5].

The Crossing to Al-Andalus and Sagrajas

In 1085 Alfonso VI of Castile captured Toledo, the ancient Visigothic capital, and the shock ran through every Muslim court in Iberia. The taifa kings, the rulers of the small states that had divided Al-Andalus since the fall of the Cordoban caliphate, had been paying heavy tribute to Alfonso for years. Led by al-Mutamid ibn Abbad of Seville, several of them now appealed to Yusuf for help, despite their misgivings about inviting a Saharan army into their refined and wealthy cities [5]. Al-Mutamid is famously reported to have said he would rather herd camels for the Almoravid than herd pigs in Castile, a remark preserved in the Andalusi chronicles [6].

Yusuf crossed the strait in the summer of 1086 with a large Almoravid force, joined by taifa contingents. On October 23, 1086, at Sagrajas near Badajoz (al-Zallaqa in the Arabic sources), his army inflicted a severe defeat on Alfonso VI. Almoravid battlefield discipline, massed drums that unnerved the Castilian cavalry, and a flanking attack led by Yusuf himself broke the Christian army, and Alfonso escaped with only a remnant of his knights [6]. The victory halted the Castilian advance for a generation, though Yusuf, then in his late seventies, returned to Morocco soon afterward when news arrived of his son's death.

He came back to Iberia in 1088 to besiege the fortress of Aledo, an operation that collapsed amid squabbling between the taifa rulers. The experience convinced Yusuf that the taifa kings were incapable of defending Islam in Iberia. Armed with legal opinions (fatwas) from jurists in Al-Andalus and the east, including the great theologian al-Ghazali according to several sources, declaring the taifa rulers unfit through their tribute payments and un-Islamic taxes, he resolved to remove them [5].

Annexation of the Taifa Kingdoms

From 1090 the Almoravid army moved against the taifas one by one. Granada surrendered that year, and its Zirid king Abdallah ibn Buluggin was exiled to Aghmat in Morocco, where he wrote a remarkable memoir, the Tibyan, one of the few autobiographies to survive from the medieval Islamic west [7]. Cordoba and Seville fell in 1091, and al-Mutamid, the poet king who had invited Yusuf across the strait, was himself deported in chains to Aghmat, where he died in poverty in 1095 [6].

Badajoz was taken in 1094 after its ruler tried to ally with Castile. Valencia, seized in 1094 by the Castilian soldier of fortune Rodrigo Diaz de Vivar, known as El Cid, resisted Almoravid attempts to retake it during the Cid's lifetime, but the city fell to Yusuf's forces in 1102, three years after the Cid's death [8]. By the early 1100s only Zaragoza in the far northeast remained outside Almoravid control among the major Muslim cities, and it acknowledged Yusuf's overlordship while retaining its own dynasty [1].

The annexations were popular with the urban lower classes and the jurists, who had resented taifa taxation, though many Andalusi literati mourned the fall of the courtly culture of the taifa palaces. Yusuf governed Al-Andalus through Almoravid governors, usually his kinsmen, backed by garrisons of Saharan and Moroccan troops [5].

Character and Personal Life

The chroniclers describe Yusuf ibn Tashfin as wiry, dark skinned, and of medium height, with a sparse beard and a soft voice, a man who kept the plain habits of the desert throughout his long life [2]. He is said to have dressed in wool, eaten barley bread, camel meat, and milk, and to have avoided the luxuries of the Andalusi courts he conquered, a contrast that Arabic writers drew repeatedly between the austere emir and the pleasure loving taifa kings [3].

His marriage to Zaynab al-Nafzawiyya remained politically central for decades; she is one of the few women of the age whom the sources credit as a genuine partner in rule. Among his children, he designated Ali ibn Yusuf, born to a Christian concubine named Qamar (some sources give Fadl al-Hasan), as heir in 1103, passing over older claimants, and had the oath of allegiance to Ali sworn in both Marrakech and Al-Andalus before his death [3].

Yusuf never learned polished Arabic, and Andalusi anecdotes poke fun at his bafflement before the ornate court poetry of Seville. Yet he respected scholars, deferred publicly to the Maliki jurists, and maintained formal allegiance to the Abbasid caliphate, receiving recognition of his titles from Baghdad [5].

Later Years and Legacy

Yusuf remained active into extreme old age, crossing to Iberia for the last time in 1102 to settle the affairs of Valencia and receive homage. He died in Marrakech on September 2, 1106, reckoned by the Arabic sources to be about a hundred lunar years old, which corresponds to roughly ninety seven solar years [1]. His tomb in Marrakech, a modest structure near the Koutoubia quarter, is still identified in the city he founded. Ali ibn Yusuf succeeded him without opposition and ruled until 1143.

Among Yusuf ibn Tashfin achievements, three stand out to modern historians. He created the first empire to unite Morocco and Al-Andalus under one government, a political framework his Almohad successors inherited and later Moroccan dynasties invoked. He founded Marrakech, which has served as a Moroccan capital repeatedly across nine centuries. And at Sagrajas he stopped the momentum of the Castilian reconquest, extending the life of Muslim rule in southern Iberia by many generations [4].

Assessments of the man have always been divided along the lines drawn in his own lifetime. Religious chroniclers praised his justice, his abolition of uncanonical taxes, and his simplicity; Andalusi men of letters remembered him as the rough soldier who extinguished the taifa courts and sent poet kings to die in Moroccan exile [7]. In modern Morocco he is honored as a founding figure of the state, and basic Yusuf ibn Tashfin facts, the founding of Marrakech, the victory of 1086, the century long lifespan, remain staples of the national story. Boulevards in Marrakech and other Moroccan cities carry his name, and his career is a fixture of scholarship on the medieval Maghrib and Islamic Spain [8].

Questions & Answers

Who was Yusuf ibn Tashfin?
Yusuf ibn Tashfin was the ruler of the Almoravid empire from 1061 to 1106. A Sanhaja Berber from the western Sahara, he founded Marrakech around 1070, conquered Morocco and western Algeria, and then annexed most of Muslim Spain after defeating Castile at Sagrajas in 1086.
When was Yusuf ibn Tashfin born?
He was born around 1009 in the western Sahara, into the Lamtuna branch of the Sanhaja Berbers. He died in Marrakech on September 2, 1106, making him roughly ninety seven solar years old, and medieval Arabic sources counted his age as a full hundred lunar years.
What is Yusuf ibn Tashfin famous for?
He is best known for founding the city of Marrakech, for defeating Alfonso VI of Castile at the Battle of Sagrajas in 1086, and for uniting Morocco and most of Muslim Spain into a single Almoravid empire. That victory halted the Christian reconquest for decades.
Did Yusuf ibn Tashfin found Marrakech?
Yes. Around 1070 he established a garrison settlement on the plain north of the High Atlas mountains, which grew into Marrakech, the Almoravid capital. The city later gave its name to Morocco in many European languages and remains one of the country's major cities.
What happened at the Battle of Sagrajas?
On October 23, 1086, near Badajoz, Yusuf's Almoravid army together with taifa contingents routed the forces of Alfonso VI of Castile. The defeat ended Castilian momentum after the fall of Toledo in 1085 and opened the way for the Almoravid takeover of Al-Andalus.
Did Yusuf ibn Tashfin fight El Cid?
Their forces clashed indirectly. Almoravid armies sent by Yusuf tried and failed to take Valencia from Rodrigo Diaz de Vivar, El Cid, during the 1090s. The city only fell to the Almoravids in 1102, three years after the Cid's death in 1099.

References

Every record in this archive is kept against verifiable sources.

  1. [1]Yusuf ibn Tashufin. Encyclopaedia Britannica. https://www.britannica.com/biography/Yusuf-ibn-TashufinWeb
  2. [2]Ronald A. Messier. The Almoravids and the Meanings of Jihad. Praeger, 2010. Book
  3. [3]Richard Fletcher. Moorish Spain. University of California Press, 1992. Book
  4. [4]Marrakesh: history and founding by the Almoravids. Encyclopaedia Britannica. https://www.britannica.com/place/MarrakechWeb
  5. [5]Hugh Kennedy. Muslim Spain and Portugal: A Political History of al-Andalus. Longman, 1996. Book
  6. [6]Joseph F. O'Callaghan. A History of Medieval Spain. Cornell University Press, 1975. Book
  7. [7]Amin T. Tibi (translator). The Tibyan: Memoirs of Abd Allah b. Buluggin, Last Zirid Amir of Granada. E. J. Brill, 1986. Book
  8. [8]Richard Fletcher. The Quest for El Cid. Oxford University Press, 1989. Book

help the keeper

Spotted an error, or hold a source the archive lacks? Every record can be corrected. Submissions are reviewed against authentic references before any change is made.

share this record

Pass this life along. The archive grows by being read.

The seal of the archive

entered into the archive

kept by The Keeper