The Almoravids Cross From Morocco, and El Cid Takes Valencia
A Berber dynasty saves Muslim Spain from collapse the same decade an exiled Castilian knight carves out his own kingdom
Quick facts
- Battle of Zallaqa (Sagrajas)
- October 23, 1086 CE
- Almoravid leader
- Yusuf ibn Tashfin
- El Cid's exile from Castile
- 1081 CE
- El Cid takes Valencia
- 1094 CE, ruled until his death in 1099
What happened
Toledo's fall in 1085 pushed several taifa rulers to call in the Almoravids, a Berber dynasty from Morocco, to stop further Christian gains. On October 23, 1086, the Almoravid leader Yusuf ibn Tashfin met King Alfonso VI at the Battle of Zallaqa (Sagrajas) near Badajoz; a contemporary Arabic chronicle recorded that Alfonso escaped the field with only nine men while Yusuf's forces pursued and killed the rest, a battle the same source calls one of the most celebrated victories in al-Andalus. In the same period, the Castilian knight Rodrigo Diaz de Vivar, known as El Cid, who had been exiled from Alfonso VI's court in 1081, was working as a mercenary captain for the Muslim rulers of Zaragoza. El Cid then turned to his own conquest, besieging Valencia and, according to the medieval chronicle Historia Roderici, taking the city by assault in 1094 and ruling it as his own until his death in 1099, even defending it against Almoravid attack in the years that followed.
Why it matters
The Almoravid intervention halted Christian expansion for a generation and shows the Reconquista was never a simple two-sided war: taifa rulers, Almoravid Berbers, and freelance Christian warlords like El Cid all fought each other as often as they fought along religious lines, a complexity that gets flattened in later nationalist retellings of the period.
How we know
The Battle of Zallaqa is recorded in a contemporary Arabic chronicle translated and analyzed by the Society for Medieval Military History, and El Cid's campaigns are documented in the near-contemporary Latin chronicle Historia Roderici and the Arabic account of Ibn Alqama, both of which describe his conquest of Valencia in detail.
Sources
- De Re Militari (Society for Medieval Military History). The Battle of Zallaqa, 1086 · Primary source (author-declared)deremilitari.org · Cited as a "primary" source (no stronger domain match). · Link is live and its text matches the event's key terms (Jul 2026)
- Medievalists.net. El Cid and the Conquest of Valencia · Reputable sourcemedievalists.net · The domain "medievalists.net" is on our Reputable source registry. · Link is live and its text matches the event's key terms (Jul 2026)
See something wrong? . Corrections with a source get fixed fastest.
Part of a timelineHistory of Spain27 events · Iberian tribes, Roman emperors, a caliphate at Cordoba, and a Reconquista that took nearly 800 years to finishView all →