Complex sentence: The Taifa of Tavira was a medieval taifa Moorish kingdom in what is now southern Portugal, which existed only from around 1146 to 1150.
Split into simpler sentences: The Taifa of Tavira was a medieval taifa Moorish kingdom in what is now southern Portugal. It existed only from around 1146 to 1150.