عبد الله الغالب
After the death of Abdallah al-Ghalib a new power struggle emerged. Abd al-Malik, Abdallah's brother, captured Fez with Ottoman support and ousted his nephew Abu Abdullah from the throne. The latter fled to Portugal where he asked king Sebastian of Portugal for help to regain his throne, while Abd al-Malik accepted Ottoman suzerainty. This led to the Battle of Alcacer Quibir where Abd al-Malik's army defeated the invading Portuguese army with the support of his Ottoman allies, ensuring Moroccan independence. Abd al-Malik himself also died during the battle and was succeeded by Ahmad al-Mansur.