, ▁not ▁only ▁to ▁protect ▁the ▁border ▁of ▁its ▁Al ger ian ▁territory , ▁but ▁also ▁because ▁of ▁the ▁strateg ic ▁position ▁of ▁Mor oc co ▁with ▁coast s ▁on ▁the ▁Mediter rane an ▁and ▁the ▁open ▁Atlantic . ▁In ▁ 1 8 6 0 , ▁a ▁dispute ▁over ▁Spain ' s ▁Ce uta ▁enc lave ▁led ▁Spain ▁to ▁declare ▁war . ▁Victor ious ▁Spain ▁won ▁a ▁further ▁enc lave ▁and ▁an ▁en larg ed ▁Ce uta ▁in ▁the ▁settlement . ▁In ▁ 1 8 8 4 , ▁Spain ▁created ▁a ▁prote ctor ate ▁in ▁the ▁coast al ▁areas ▁of ▁Mor oc co . ▁ ▁In ▁ 1 9 0 4 , ▁France ▁and ▁Spain ▁car ved ▁out ▁zones ▁of ▁influence ▁in ▁Mor oc co . ▁Rec ogn ition ▁by ▁the ▁United ▁Kingdom ▁of ▁France ' s ▁sphere ▁of ▁influence ▁prov oked ▁a ▁strong ▁reaction ▁from ▁the ▁German ▁Empire ; ▁and ▁a ▁crisis ▁lo omed ▁in ▁ 1 9 0 5 . ▁The ▁matter ▁was ▁resolved ▁at ▁the ▁Al ge cir as ▁Conference ▁in ▁ 1 9 0 6 . ▁The ▁Ag ad ir ▁Cris is ▁of ▁ 1 9 1 1 ▁increased ▁t ensions ▁between ▁European ▁powers . ▁The ▁ 1 9 1 2 ▁Tre aty ▁of ▁Fe z ▁made ▁Mor oc co ▁a ▁prote ctor ate ▁of ▁France , ▁and ▁triggered ▁the ▁ 1 9 1 2 ▁Fe z ▁ri ots . ▁Spain ▁continued ▁to ▁operate ▁its ▁coast al ▁prote ctor ate . ▁By ▁the ▁same ▁treat y , ▁Spain ▁assumed