The taifas (singular taifa, from طائفة ṭā'ifa, plural طوائف ṭawā'if, a party, band or 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.
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.