threat to Moroccan independence. At Wilhelm's urging, Sultan Abd el Aziz called for an international conference. The final act of the Algeciras Conference (7 April 1906) created the State Bank of Morocco, guaranteed the attending powers equal commercial rights in Morocco and created a native Moroccan police force led by French and Spanish officers. The final Spanish zone of influence consisted of a northern strip and a southern strip centred on Cape Juby. The consideration of the southern strip as part of the protectorate back in 1912 eventually gave Morocco a solid legal claim to the territory in the 1950s. While the sparsely populated Cape Juby was administered as a single entity with Spanish Sahara, the northern territories were administered, separately, as a Spanish protectorate with its capital at Tetuán. The Protectorate system was established in 1912. The Islamic legal system of qadis was formally maintained. Rif War Following the First World War, the Republic of the Rif, led by the guerrilla leader Abd el-Krim, was a breakaway state that existed from 1921 to 1926 in the Rif region, when it was subdued and dissolved by joint expedition of the Spanish Army of Africa and French forces during the Rif War. The Spanish lost more than 13,000 soldiers at Annual in July–August 1921. Controversy in Spain over the early conduct in the war was a driving factor behind the military coup by General Miguel Primo de Rivera in 1923 which foreshadowed the Spanish Civil War of 1936–39. After the successful 1925 Alhucemas landing, the French–Spanish alliance ended up achieving victory and putting an end to the war. Second Spanish Republic Before 1934, the southern part of the protectorate (Tekna) had been governed from Cape Juby (within the same southern strip) since 1912; Cape Juby was also the seat of Spanish West Africa. Then, in 1934, the southern part began to being managed directly from Tetuán (in the northern part of the protectorate) and the seat of Spanish West Africa was moved from Cape Juby to the territory of Ifni (not a part of the protectorate), which had been occupied by the Spaniards that year. Spanish Civil War The Spanish Civil War started in 1936 with the partially successful coup against the Republican Government, which began in Spanish Morocco by an uprising of the Spanish Army of Africa stationed there, although within a day uprisings in Spain itself broke out. This