 Madrid, however, being largely uninterested in an African empire and cautious not to offend the United Kingdom (which viewed any acquisition of territory along the Straits of Gibraltar with alarm), demanded only token territorial concessions from the Sultan.This did not discourage French ambitions, however, and in 1912 the Treaty of Fez divided Morocco into French and Spanish protectorates.As a result of the war Melilla was granted its own branch of the "Guardia Civil", Spain's Gendarmerie.