After 1541, the city played a major role in Morocco as one of the safest and biggest seaports in the country.
After the Sultan Mohammed ben Abdallah built the city of Mogador, he banned foreign trade in all Moroccan ports except in his newly built city.