Complex sentence: The Taifa of Badajoz (from) was a medieval Islamic Moorish 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.
Split into simpler sentences: The Taifa of Badajoz (from) was a medieval Islamic Moorish kingdom located in what is now parts of Portugal and Spain. It was centred on the city of Badajoz which exists today as the first city of Extremadura, in Spain.