Open the interactive atlas →
Anti-colonial & freedom

Abd el-Krim and the Republic of the Rif

Berber mountain tribes inflicted one of the worst defeats on a European army in colonial history and founded a republic. Spain and France needed hundreds of thousands of troops — and poison gas — to crush it.

When
1921 – 1926
Where
Ajdir and the Rif mountains, northern Morocco
Facts checked
2026-12-04

See it on the map →

Abd el-Krim on the cover of TIME magazine, August 1925.
Abd el-Krim on the cover of TIME magazine, August 1925. TIME magazine · Public domain · Wikimedia Commons
01

What is the background to this event?

In 1912, Morocco was divided into French and Spanish protectorates. Spain took the north, including the Rif mountains, home to Amazigh (Berber) tribes who had long resisted outside control.1

  • From 1909, Rif tribes attacked Spanish workers building railways to iron mines near Melilla, leading to years of fighting.1
  • Muhammad ibn Abd al-Karim al-Khattabi — Abd el-Krim — had worked for the Spanish administration as a judge and journalist, but turned against Spanish rule.
02

Who were the key people?

  • Abd el-Krim

    A former judge and journalist who led the Rif resistance and founded the Republic of the Rif. He died in exile in Cairo in 1963.

  • The Rif tribes

    Farmers and fighters, notably the Aït Waryaghar, who formed the core of the resistance.

  • General Manuel Fernández Silvestre

    The Spanish commander who died in the disaster at Annual.

  • Marshal Philippe Pétain

    Who led French forces against the Rif in 1925.

03

What happened?

In July 1921, Spanish forces under General Silvestre, spread thinly across 144 forts and posts, were attacked by Abd el-Krim's fighters at Annual.1

  • The Spanish army collapsed in what Spain called the "Disaster of Annual". Some 8,000 soldiers were reported killed or missing at Annual, and the total Spanish death toll in the rout was reported as 13,192.1
  • Many Spanish soldiers were killed after surrendering. At Monte Arruit, the Spanish found the bodies of 2,600 of the garrison when they retook the fort in 1922.1
  • In September 1921, Abd el-Krim proclaimed the Republic of the Rif, with its own government, taxes and courts.1

Unable to defeat the Rif, the Spanish military turned to chemical weapons, dropping mustard gas on villages, markets and fields.1 In 1925, after the Rif attacked the French zone, France joined the war. A combined force of hundreds of thousands of French and Spanish troops, with aircraft and tanks, and a large Spanish landing at Al Hoceima, wore down the Rif.1

In 1926, Abd el-Krim surrendered to the French and was exiled.1

04

What happened next?

  • Exile: Abd el-Krim was exiled to the island of Réunion. In 1947 he escaped in Egypt and helped inspire North African independence movements from Cairo.
  • Spain: the disaster at Annual helped bring down Spain's parliamentary government; General Primo de Rivera seized power in 1923. Officers who fought in Morocco, including Francisco Franco, later led the 1936 coup that began the Spanish Civil War.
  • Gas: studies suggest that the gas attacks may have caused long-term health effects in the Rif, and campaigners have called on Spain to acknowledge them.
05

Why does it matter?

The Rif War was one of the most important anti-colonial wars of the twentieth century. Abd el-Krim's guerrilla tactics influenced later liberation movements, from Vietnam to Algeria.

  • It shows how a mountain people could challenge European armies.
  • It was one of the first uses of chemical weapons from the air against civilians.
  • It shaped the history of Spain as well as Morocco.

Go further

What do others say?How it was seen at the time, and where historians disagree

At the time

Spain and France called the Rif rebels savages. Anti-colonial movements and left-wing parties in Europe — including the French Communist Party — supported the Rif.

Historians' debates

  • A modern state? Historians such as C. R. Pennell show that the Republic of the Rif built a functioning government, not just a tribal alliance.
  • Violence on both sides: Rif fighters killed many Spanish prisoners after Annual and Monte Arruit; Spanish and French forces used chemical weapons and bombed civilians.1
  • Memory in Morocco: the Rif's relationship with the Moroccan monarchy has been tense; the Rif rose again in 1958–59 and in the Hirak protests of 2016–17.
How do we know?The evidence, and a source from the time
  • Spanish and French military records and parliamentary inquiries.
  • Abd el-Krim's own statements and memoirs.
  • Studies of the chemical weapons attacks by historians such as Sebastian Balfour.

Primary source: Magazine cover

Abd el-Krim on the cover of TIME magazine, August 1925.
Abd el-Krim on the cover of TIME magazine, August 1925. TIME magazine · Public domain · Wikimedia Commons
What is it?
Magazine cover
Made by, and when
TIME magazine, August 1925

Abd el-Krim on the cover of an American news magazine. His war against Spain and France made him world-famous.

Reading it

Abd el-Krim on the cover of TIME. His victories made him world-famous, and fame could bring sympathy abroad. It also made the Rif Republic impossible for Spain and France to ignore — and TIME's readers mostly heard the war described from European sources.

How is it remembered?Memorials, anniversaries and arguments over memory
  • Abd el-Krim is a hero across North Africa and the anti-colonial world.
  • The Rif flag was carried by protesters in the Hirak movement of 2016–17.
Open questionsWhat this story leaves unresolved
  • How did the Rif fighters defeat a much larger Spanish army at Annual?
  • Why did Spain use chemical weapons?
  • How did the Rif War affect Spain's own history?
  • Should states acknowledge and compensate for colonial-era chemical attacks?
Similar eventsOther struggles like this one
  • 1929Omar al-Mukhtar and the Libyan Resistance — A Quran teacher in his sixties led a guerrilla war against Fascist Italy for nearly a decade. To defeat him, Italy forced half the population of eastern Libya into concentration camps.
  • 1925The Great Syrian Revolt — Druze villagers, Damascus craftsmen and peasants from across Syria rose against French rule. France answered by shelling Damascus.
  • 1945The Sétif and Guelma Massacres — On the day the Second World War ended in Europe, Algerians marched for independence in Sétif. The colonial response killed thousands and set the course towards war.
Find out moreBooks, websites and places to visit
References
  1. Wikipedia, 'Rif War', on the background, the disaster of Annual, the death toll, Monte Arruit, the Republic of the Rif, the use of chemical weapons, French intervention and the end of the war.
  2. Wikipedia, 'Manuel Fernández Silvestre'
  3. Sebastian Balfour, Deadly Embrace: Morocco and the Road to the Spanish Civil War (Oxford University Press, 2002).
  4. C. R. Pennell, A Country with a Government and a Flag: The Rif War in Morocco, 1921–1926 (Menas Press, 1986).

All stories · Open this story in the interactive atlas · Glossary of key words