The Taifa of Badajoz (from Arabic: Ta'waif al-Batalyaws‎) was a medieval Muslim kingdom in what is now parts of Portugal and Spain and centred on the city of Badajoz which exists today as the first city of Extremadura, in Spain.It rose, like the other Taifa kingdoms of the Iberian Peninsula, after the fragmentation of Al-Andalus (the Caliphate of Cordoba) in the late 10th and early 11th centuries, and was ruled by the Aftasid dynasty.