 Hisham II abdicated and was replaced by Muhammad II al-Mahdi.Having abandoned Sanchuelo, the Berbers who had formed his army turned to another ambitious Umayyad, Sulayman, whom they supported.They obtained logistical support from Count Sancho Garcia of Castile.