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 Spanish lost more than 13,000 soldiers at Annual in July–August 1921. The rebellion was eventually suppressed by French and Spanish troops.