 He was particularly successful in expelling the Portuguese from most of their bases in Morocco.He also eliminated the Wattasids and resisted the Ottomans, thereby establishing a complete rule over Morocco.After the death of his father Abu Abdallah al-Qaim in 1517, Mohammed ash-Sheikh (together with his brother Ahmad al-Araj) took command of the war of the Saadi against the Portuguese.