information:filtering, information:highlighting, quality:correction, linguistic:voice_change
Taifas period

The Caliphate of Córdoba effectively collapsed during a ruinous civil war between 1009 and 1013, although it was not finally abolished until 1031 when al-Andalus broke up into a number of mostly independent mini-states and principalities called taifas. In 1013, invading Berbers sacked Córdoba, massacring its inhabitants, pillaging the city, and burning the palace complex to the ground. The largest of the taifas to emerge were Badajoz (Batalyaws), Toledo (Ṭulayṭulah), Zaragoza (Saraqusta), and Granada (Ġarnāṭah). After 1031, the taifas were generally too weak to defend themselves against repeated raids and demands for tribute from the Christian states to the north and west, which were known to the Muslims as "the Galician nations", and which had spread from their initial strongholds in Galicia, Asturias, Cantabria, the Basque country, and the Carolingian Marca Hispanica to become the Kingdoms of Navarre, León, Portugal, Castile and Aragon, and the County of Barcelona. During the eleventh century several centres of power existed among the taifas, and the political situation shifted rapidly. Before the rise of the Almoravids from Africa or the Christians from the north, the Abbadid -ruled Taifa of Seville succeeded in conquering a dozen lesser kingdoms, becoming the most powerful and renowned of the taifas, such that it could have laid claim to be the true heir to the Caliphate of Córdoba. The taifas were vulnerable and divided but had immense wealth. During its prominence the Taifa of Seville produced technically complex lusterware and exerted significant influence on ceramic production across al-Andalus.

In the 1080s, the taifa kingdoms began to face an existential threat from the Christian kingdoms to the north, as Alfonso VI of Castile escalated attacks against them. In 1083, he led a punitive expedition against Seville that reached all the way to Tarifa at the southern tip of al-Andalus. In 1085, he annexed Toledo, a turning point which galvanized the remaining taifa leaders into seeking outside help.