The Ottoman Empire captured whole Northern Africa
except Morocco. When Murad III acceded the throne, a rivalry was going on for Morocco and
the Moroccans were divided in to two as the Ottoman supporters and Portuguese supporters.
In 1578, the Moroccan Sultan invited the Ottomans to
the land and the Ottoman forces led by Ramazan Pasha defeated the Portuguese army in
Vadi-ul Sebil and annexed the Sultanate of Morocco in to Ottoman territories.