The Taifa of Almería (Arabic: طائفة المرية, Ta'ifa Almería) was a Muslim medieval kingdom in what is now the province of Almería in Spain. The kingdom originated in 1012 and lasted until 1091.In this period the city of Almería reached its historical splendour under powerful local emirs like Jayran or Jairan, the first fully independent Emir of Almería and Cartagena, and Abu Yahyà Muhammad ben Ma'n.Almería declared independence of its province from Caliphate of Cordoba around 1012.