Hi there so the battle between the Portuguese and Morocco was more than just two sides. The Ottoman Empire which had taken over Algeria had its eyes on Morocco. It had supported Abd Al-Malik against his older brother Abu Abdallah.
Abu Abdallah then went to Portugal and convinced king Sebastiao to attack. Ironically Abd Al-Malik Died during battle from natural causes but the fact was hidden from his Soldiers.
So let say that Abd Al-Malik dies before the battle and the Portuguese and Abu Abdallah forced defeat the demoralized Abd Al-Malik forces.
So the Portuguese would get a lot of the coast including the town list and support Abu Abdallah installation as sultan in fez. They then have to support him against Ottoman Empire.
The Portuguese be in control of the coast and with Abu Abdallah in Fez be able to have a lot of influence. How long is upto Portuguese and sultan. Can he maintain control or will the ottomans sponsor someone to challenge him? When will the Ottoman finally decided to ally with him and future sultan feel ready to attack Portuguese?