Rebellion and Al-Andalus Consolidation
Seville, SpainAround this time a major rebellion centred in the Sous valley, led by Muhammad ibn 'Abd Allah al-Massi, shook the Almohad Empire and took on religious dimensions, rallying various tribes to counter the Almohads. After initial Almohad setbacks, the rebellion was eventually suppressed thanks to Abd al-Mu'min's lieutenant, Umar al-Hintati, who led a force that killed al-Massi.
The rebellion had taxed Almohad resources and resulted in temporary reversals in Al-Andalus too, but the Almohads soon went on the offensive again. Responding to local appeals from Muslim officials, they took control of Cordoba in 1149, saving the city from the forces of Alfonso VII. The remaining Almoravids in Al-Andalus, led by Yahya ibn Ghaniya, were by then confined to Granada. In 1150 or 1151 Abd al-Mu'min summoned the leaders and notables of Al-Andalus under his control to Ribat al-Fath (Rabat), where he made them pledge loyalty to him, apparently as a political demonstration of his power. The Almoravids in Granada were defeated in 1155 and retreated thereafter to the Balearic Islands, where they held out for several decades more.The Almohads transferred the capital of Muslim Iberia from Córdoba to Seville.