The taifas (from Arabic: طائفة ṭā'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. A form of petty kingdoms, 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.