Rubuta ci gaba don wannan sakin layi - A shekara ta 1907, Faransawa sun yi amfani da kisan Émile Mauchamp a Marrakesh a matsayin hujja don mamaye Oujda a gabas, kamar yadda suka yi tawaye da cin zarafin kudaden haraji a Casablanca a matsayin damar da za su kai hari da mamaye birnin
a yamma. Rikicin Agadir ya kara tashin hankali tsakanin kasashen Turai masu karfi, kuma ya haifar da Yarjejeniyar Fez (wanda aka sanya hannu a ranar 30 ga Maris 1912), wanda ya sanya Morocco ta zama mai kare Faransa. Yarjejeniyar ta biyu da shugabannin Faransa da na Spain suka sanya hannu, an ba Spain yankin da ke da tasiri a arewacin da kudancin Maroko a ranar 27 ga Nuwamba, 1912. Yankin arewacin ya zama mai kare Mutanen Espanya a Maroko, yayin da aka yi mulkin kudancin daga El Aaiun a matsayin yankin da ke tsakanin Saguia El Hamra da Maroko. Yarjejeniyar Fez ta haifar da rikicin Fez na 1912. Ta hanyar Yarjejeniyar Tangier da aka sanya hannu a watan Disamba na 1923, Tangier ta sami matsayi na musamman kuma ta zama yanki na duniya, kodayake, a lokacin Yaƙin Duniya na II, Francoist Spain ta mamaye shi daga 1940 zuwa 1945.