Republic of the Rif

It was created in September 1921, when a coalition of Rifians and Jebala led by Abd el-Krim revolted in the Rif War against the Spanish protectorate in Morocco.

A protracted struggle for independence killed many Rifians and Spanish–French soldiers, and witnessed the use of chemical weapons by the Spanish army—their first widespread deployment since the end of the World War I.

[5] French and Spanish colonialism in Morocco was discriminatory against the native Rifians and Sahrawis and was highly detrimental to the Moroccan economy.

[6] Additionally, improvements to agriculture and irrigation systems in Morocco exclusively benefited colonial agriculturalists while leaving Moroccan farms at a technological disadvantage.

[6] Following the allowance of its interests and recognition of its influence in northern Morocco through the 1904 Entente Cordiale, 1906 Algeciras Conference and 1907 Pact of Cartagena, Restoration-era Spain occupied Ras Kebdana, a town near the Moulouya River, in March 1908[7][8] and launched the Melillan and Kert campaigns against the Riffian tribes between 1909 and 1912.

[11] The Moroccan independence president Abd el-Krim (1882–1963) organized an armed revolution, the Rif War, against the Spanish and French colonial control of Morocco.

[13] In 1921, local Rifians, under the leadership of Abd el-Krim, crushed a Spanish offensive led by General Manuel Fernández Silvestre at the Battle of Annual, and soon after declared the creation of an independent republic on 18 September 1921.

[14] The republic was formally constituted in 1923, with Abd el-Krim as head of state, and Ben Hajj Hatmi as prime minister.

[21] On 11 October 1925, Théodore Steeg replaced Lyautey as resident-general with the mandate of restoring peace and making the transition from military to civilian government.

Abd-el-Krim boarding a Fez-Tangier train in 1926 on his way to exile in the Indian Ocean island of Réunion