thumb|The taifas (green) in 1031

The taifas (from ṭā'ifa, plural ṭawā'if, meaning "party, band, faction") were the independent Muslim principalities and kingdoms of the Iberian Peninsula (modern Portugal and Spain), referred to by Muslims as al-Andalus, that emerged from the decline and fall of the Umayyad Caliphate of Córdoba between 1009 and 1031. They were a recurring feature of al-Andalus history.

The taifas were eventually incorporated by the Almoravid dynasty in the late 11th century and, on its collapse, many taifas re-appeared only to be incorporated by the Almohad Caliphate. The fall of the Almohads resulted in a flourishing of the taifas, and this was the case despite constant warfare with Christian kingdoms. Taifa kings were wary of calling themselves "kings", so they took the title of hajib, presenting themselves as representatives for a temporarily absent caliph. The taifa courts were renowned centres of cultural excellence in which poets, scientists, and other scholars were able to thrive.

Wars between the taifas were common and rulers of Muslim taifas were known to ally with the Iberian Christians (and the North African kingdoms) against European or Mediterranean Christian rulers from outside of al-Andalus. These alliances frequently included payments of large tributes in return for security. Eventually, the taifas of Badajoz, Toledo, Zaragoza, and even Sevilla paid tribute to Alfonso VI. By the end of the 13th century, only one remained, the Emirate of Granada, the rest being incorporated into the Christian states of the north.

Etymology

The Arabic term mulūk al-ṭawāʾif means "kings of the territorial divisions" or "party kings". Muslim historians originally used these terms to refer to the Parthian Empire and other regional rulers that succeeded Alexander the Great. That period was treated as an interlude between Alexander's conquest of Persia and the formation of the Sasanian Empire. The negative portrayal of the Parthian period by Muslim historians may have been inherited from Sasanian propaganda. In the 11th century, Ṣāʿid al-Andalusī first applied the term to the regional rulers who appeared after the collapse of Umayyad power in Spain, "whose condition was like that of the mulūk al-ṭawāʾif of the Persians". The phrase implied cultural decline.

Rise

The origins of the taifas must be sought in the administrative division of the Umayyad Caliphate of Córdoba, as well in the ethnic division of the elite of this state, divided among Arabs, Berbers, Muladíes (indigenous Muslim converts, a significant majority) and the Saqaliba, Eastern European former slaves.

However, the political decline and chaos was not immediately followed by cultural decline. To the contrary, intense intellectual and literary activity grew in some of the larger taifas.

There was a second period when taifas arose, toward the middle of the 12th century, when the Almoravid rulers were in decline.

During the heyday of the taifas, in the 11th century and again in the mid 12th century, their emirs (rulers) competed among themselves, not only militarily but also for cultural prestige. They tried to recruit the most famous poets and artisans.

Decline

Observers in al-Andalus in the 1080s did not see a decline as likely, much less imminent or probable. However, by the 1090s, popular revolt became a real possibility as the ulama accusations against taifa kings gained popularity.

In the 1100s, the remnants of the taifa dynasties in al-Andalus would join forces with Christian powers as a last attempt to shift momentum back in their favor against the Almoravids.