In 1904, France and Spain carved out zones of influence in Morocco. Recognition by the United Kingdom of France's sphere of influence provoked a strong reaction from the German Empire; and a crisis loomed in 1905. The matter was resolved at the Algeciras Conference in 1906. The Agadir Crisis of 1911 increased tensions between European powers. The 1912 Treaty of Fezmade Morocco a protectorate of France, and triggered the 1912 Fez riots. Spain continued to operate its coastal protectorate. By the same treaty, Spain assumed the role of protecting power over the northern and southern Saharan zones.