A patchwork of small kingdoms
The collapse of the caliphate did not leave a gap; it left many rulers. Even before 1031, governors, generals and leading families had made their provinces into states of their own. Arabic writers called them the muluk al-tawaif, “kings of the factions”, and the word taifa has stayed. Some were Arab families with deep roots, such as the Abbadids of Seville; some Berber chiefs brought in as soldiers, such as the Zirids of Granada; some were the Saqaliba, Slav officers of the old army, on the east coast.
The taifas fought each other constantly, and the larger swallowed the smaller. Seville, the strongest, took Córdoba around 1070. Every king tried to look like a little caliph, with a palace, poets and a chancery, and some took grand titles. None was strong enough to stand alone against the kingdoms of the north, which were now growing in people and in confidence.
| Taifa | Ruling family | How it ended |
|---|---|---|
| Seville | Abbadids, Arab | Almoravids, 1091 |
| Córdoba | Jahwarids, city notables | Seville, c. 1070 |
| Toledo | Dhu al-Nunids, Berber | Alfonso VI, 1085 |
| Zaragoza | Tujibids, then Hudids, Arab | Almoravids, 1110 |
| Granada | Zirids, Berber | Almoravids, 1090 |
| Badajoz | Aftasids, Berber | Almoravids, 1094 |
| Valencia | Almanzor’s descendants, later others | El Cid, 1094 |
Simplified: many taifas changed hands more than once, and there were many smaller ones.
Poets, scholars and viziers
Politically weak, the taifa courts were rich in learning. With no single capital, patrons were everywhere. Al-Mutamid, king of Seville from 1069 to 1091, was one of the best poets of his age. Ibn Hazm of Córdoba, who died in 1064, wrote on law, religions and, in The Ring of the Dove, on love. In Toledo the astronomer al-Zarqali, known in Latin as Arzachel, built instruments and helped draw up astronomical tables later used across Europe. In Zaragoza the Hudid kings built the Aljafería palace.
Jews rose high in some courts. In Granada Samuel ibn Naghrela, a scholar and Hebrew poet, served the Zirid kings as vizier and even led their armies until his death in 1056. His son Joseph followed him in office, but resentment of a Jewish minister fed a riot in December 1066 in which he and many of the city’s Jews were killed. The episode shows both sides of life for dhimmi in al-Andalus: high office was possible, and so was sudden violence.
Paying for peace: the parias
The Christian kings soon saw that the taifas could be milked. Ferdinand I, king of León and Castile from 1037 to 1065, forced Toledo, Zaragoza, Badajoz and Seville to pay him yearly tribute in gold, the parias, in return for leaving them alone and defending them from others. The counts of Barcelona did the same with their southern neighbours. The tribute was paid in coin, and it brought into the north more gold than it had ever seen. Part of it went to the abbey of Cluny in Burgundy, which the kings of León supported with yearly gifts.
His son Alfonso VI pressed harder. Envoys came each year to collect the money, and kings who were late found their lands raided. El Cid, Rodrigo Díaz, was sent to fetch the tribute of Seville in 1079 and fought for its king against Granada, which had Castilian knights on its side. After Alfonso exiled him in 1081, he served the Hudid kings of Zaragoza for five years. The last Zirid king of Granada, Abd Allah, later described in his memoirs how he bargained with Alfonso’s envoys and how each taifa king tried to buy safety at the others’ cost.
Toledo falls, and Africa is called in
Toledo’s last king, al-Qadir, could not hold his own city, and Alfonso VI agreed to place him in Valencia instead. On 25 May 1085 Alfonso entered Toledo, the old Visigothic capital, in the capture of Toledo. It was the first great Muslim city to pass to a Christian king. He already styled himself emperor of all Spain, and the next year he laid siege to Zaragoza. The other taifa kings, led by al-Mutamid of Seville, turned for help to the one Muslim power that could fight Castile.
That power was the Almoravids, al-Murabitun. They had begun around the 1040s as a religious movement among the Sanhaja Berbers of the western Sahara, led by the preacher Abd Allah ibn Yasin, who demanded strict observance of Islamic law. Under Yusuf ibn Tashfin they conquered Morocco and founded Marrakesh as their capital around 1070. In 1086 Yusuf crossed the strait and, on 23 October, crushed Alfonso’s army at Sagrajas, near Badajoz.
The Almoravids take over
Yusuf went home after Sagrajas, but the taifa kings went on quarrelling and paying Castile. Muslim jurists in al-Andalus urged him to depose them as bad rulers who taxed beyond the law. From 1090 he did so: Granada fell that year, Seville in 1091 and Badajoz in 1094. Abd Allah of Granada and al-Mutamid of Seville were sent into exile at Aghmat in Morocco, where al-Mutamid died in 1095. Only Zaragoza, a useful buffer against Aragon, kept its Hudid kings until 1110.
One city escaped them for a time. El Cid took Valencia in June 1094 after a long siege, beat an Almoravid army outside its walls and ruled it until his death in 1099. His widow Jimena held it until 1102, when Alfonso VI had the city burned and evacuated. The Almoravids won again at Uclés in 1108, where Alfonso’s only son was killed, but Alfonso I of Aragon took Zaragoza from them in December 1118.
Almoravid rule leaned on the Maliki jurists, the guardians of the school of law followed in al-Andalus. It was stricter in religion than the taifas had been, and in Córdoba the works of the eastern theologian al-Ghazali were publicly burned. For the Mozarabs it was harder too. After many of them joined a great raid by Alfonso I in 1125–1126, thousands were deported to Morocco. By the 1140s Almoravid power was failing, worn down by Christian attacks and by a new movement at home.
The Almohads
The Almohads, al-Muwahhidun, “those who affirm the oneness of God”, began among the Masmuda Berbers of the High Atlas. Their founder, the preacher Ibn Tumart, accused the Almoravids of error and claimed to be the Mahdi, the rightly guided one. His successor Abd al-Mumin took the title of caliph and captured Marrakesh in 1147. In al-Andalus the Almoravid collapse had already produced a second round of taifas, and the Almohads crossed to take them over, making Seville their capital on the peninsula.
It took them decades. Ibn Mardanish, the “Wolf King” of Murcia and Valencia, resisted them from 1147 until his death in 1172, allied with Castile, Barcelona, Genoa and Pisa. Meanwhile Christian kings took Lisbon and Almería in 1147. The Almohads ended the old protection of dhimmi in their lands: Jews and Christians were pressed to convert or leave. The family of Maimonides left Córdoba after the Almohads took it in 1148, and wandered for years before settling in Egypt.
Yet the Almohad court was also a centre of thought. The caliph Abu Yaqub Yusuf, who reigned from 1163 to 1184, gathered philosophers around him. Averroes served him as judge and physician and, at his request, wrote his commentaries on Aristotle. In Seville the caliphs built a great mosque whose minaret, begun in 1184, survives as the Giralda. In 1195 Abu Yusuf Yaqub al-Mansur crushed Alfonso VIII of Castile at Alarcos, the last great Muslim victory in the peninsula.
| Feature | Almoravids | Almohads |
|---|---|---|
| Origin | Sanhaja Berbers of the western Sahara | Masmuda Berbers of the High Atlas |
| Founder | Abd Allah ibn Yasin, d. 1059 | Ibn Tumart, d. c. 1130 |
| Ruler’s title | emir, under the Abbasid caliph | caliph |
| Capital | Marrakesh | Marrakesh; Seville in al-Andalus |
| In al-Andalus | from 1086 | from 1147 |
| Great victories | Sagrajas 1086, Uclés 1108 | Alarcos 1195 |
| Great defeats | Zaragoza lost 1118, Cutanda 1120 | Las Navas de Tolosa 1212 |
| End in al-Andalus | 1140s | 1220s–1230s |
The end of the African century
The tide turned at Las Navas de Tolosa on 16 July 1212. Alfonso VIII of Castile, with the kings of Aragon and Navarre and knights from across the peninsula, defeated the caliph Muhammad al-Nasir. The Almohad empire did not fall at once, but after the death of the young caliph Yusuf II in 1224 it split in a war of succession, and its governors in al-Andalus broke away. A third age of taifas began, led by Ibn Hud in Murcia and by Muhammad I, founder of the Nasrid dynasty.
For a century and a half the two African empires had held al-Andalus together and slowed the Christian advance. They also changed both sides. Al-Andalus became more firmly Muslim and more tied to North Africa, while many Mozarabs and Jews moved north. Christian kings answered with the language of crusade, the crusade in Iberia, and with military orders such as the Order of Santiago. What followed is told in The great conquests of the 13th century; the whole story in What was the Reconquista?