Between 1921 and 1926, a Berber uprising in the Rif Mountains, led by Abd el-Krim, led to the establishment of the Republic of the Rif. The rebellion was eventually suppressed by French and Spanish troops.