PLEnlist

The Rif War, 1921 to 1926: Abd el-Krim against Spain and France

Northern Morocco · 1921 to 1926 · Riffians vs Spain and France · ~6 min read · Updated October 2026

Painting of soldiers cheering from a crowded barge beside a gray torpedo boat numbered 22, with landing craft, aircraft and smoke under a rocky coast.

The Alhucemas landing of 1925, painted by José Moreno Carbonero in 1929. Museo del Prado; public domain, via Wikimedia Commons.

At a glance

Dates
1921 to 1926
Where
The Rif mountains of the Spanish protectorate in northern Morocco, and from 1925 the French zone to the south
Sides
Riffian tribes under Muhammad ibn Abd el-Krim against Spain, joined by France in 1925
Key battle
Annual, July 1921
Turning point
The Spanish and French landings at Alhucemas Bay, 1925
Outcome
Abd el-Krim surrenders to the French in 1926 and is exiled to Réunion
Quick answer

What was the Rif War?

The Rif War was the uprising of the Berber tribes of the Rif mountains in northern Morocco against Spanish, and later French, colonial rule from 1921 to 1926. Led by Muhammad ibn Abd el-Krim, the Riffians destroyed a Spanish army at Annual in 1921, drove Spain back to the coast and set up a Republic of the Rif. When Abd el-Krim attacked French Morocco in 1925, France and Spain combined against him, and he surrendered to the French in 1926.1

A protectorate that did not hold

In 1912 France and Spain divided Morocco into protectorates. France took the center and south; Spain received a strip in the north that included the Rif, a wall of mountains whose Berber tribes Spain struggled to control from the start. Enrique Vázquez notes, reviewing María Rosa de Madariaga's biography of Abd el-Krim, that the sultan's court at Fez had never had real control there either.2

Muhammad ibn Abd el-Krim al-Khattabi was born at Ajdir, on the bay of Alhucemas, in 1882. He became the leader of the Beni Urriaguel, a tribe of the central Rif, and for years he was a proven friend of Spain. Madariaga traces his path from that early sympathy, through a first anticolonial manifesto at the start of the First World War, to open war against Spain by 1920 and 1921, when he and his younger brother rose to drive the Spanish out of the protectorate.3

The Rif was never only a local quarrel. During the First World War, in which Spain stayed neutral, German agents worked among the tribes of the Franco-Spanish zone, and Britain watched anxiously over anything that might change the balance around Gibraltar and Tangier. Madariaga's book, Vázquez writes, is at its best on this diplomatic background, which helps explain how a tribal leader from the Rif came to matter in London, Paris and Berlin.4

Annual, 1921

The Spanish answer was an advance from Melilla deep into the Rif under General Manuel Fernández Silvestre. In July 1921 it ended in catastrophe at Annual, where Abd el-Krim's men overran Silvestre's outposts and turned the retreat into a massacre. EBSCO's account says the Riffians destroyed a Spanish army of 20,000, reversing twenty years of Spanish advance in a fortnight, and puts the Spanish dead, soldiers and civilians, at 10,000 to 20,000. Osprey's 2024 study by Philip Jowett and Martin Windrow gives some 13,000 Spanish troops killed. Silvestre himself died there.5

After Annual the war spread west. EBSCO describes a Riffian force of 3,000 to 4,000 regulars, with tribal auxiliaries, harassing the Spanish posts. In 1924 the government of General Miguel Primo de Rivera ordered a withdrawal to fortified enclaves on the coast, and the retreat from Xauen alone cost the Spanish army about 17,000 casualties.6

Black and white photograph of five men in hooded robes and turbans standing and sitting on rocks by the sea.
Abd el-Krim, second from left, with his associates Mohamed Asmani and Suleiman al-Tatabi at Ajdir, 1925. National Digital Archives, Poland. Public domain

The Republic of the Rif

At the height of his power, in 1924 and 1925, Abd el-Krim headed a Republic of the Rif. Vázquez calls it a state that existed in fact but was never accepted in Europe, nor in Fez, where the sultan and his court saw Abd el-Krim as a separatist. When the Turkish republic abolished the caliphate in 1924, he was even courted as a possible caliph, but he always insisted that his struggle was strictly national, not a pan-Islamic cause.7

France joins the war

For four years French Morocco stayed out of the fighting. In the spring of 1925 Abd el-Krim gambled and struck south, attacking French outposts and threatening the cities of the French zone. Jowett and Windrow call it his gamble of April 1925, followed by a summer of fighting along the central, western and eastern fronts.8

France now brought in its heaviest weapons. Marshal Lyautey, who had governed French Morocco since 1912, was replaced in command by Marshal Philippe Pétain, the defender of Verdun, who worked smoothly with Primo de Rivera's staff. Pétain poured in reinforcements in July and August 1925, and in September and October 1925 the two armies carried out coordinated operations.9

Alhucemas and the end

The centerpiece was a Spanish landing at Alhucemas Bay, in the heart of Abd el-Krim's own country, in September 1925, while the French pushed north. Vázquez describes it as the great Spanish and French landing that entered European military history. With his homeland now invaded, Abd el-Krim held on through the winter, but a final Franco-Spanish offensive in May 1926 broke the Rif, and he surrendered to the French.10

France sent him into exile on the island of Réunion in the Indian Ocean, where he spent more than twenty years. In 1947 Paris agreed to move him to France, but when his ship passed through the Suez Canal he left it at Port Said, under pressure from Arab nationalists, and was granted asylum in Egypt. He died in Cairo on 6 February 1963.11

Why the Rif War mattered

For Spain the Moroccan wars were a long political wound. Vázquez argues that they bred several of the old demons that led to the Civil War of 1936, in which the Army of Africa and its officers, among them a young general named Francisco Franco, weighed heavily, in campaigns such as the Aragon Offensive of 1938. For North Africa, Abd el-Krim became a symbol of resistance to European rule. Vázquez concludes that his leadership had international resonance and helped kindle the movements that led to independence after the Second World War.12

Notes

A number in the text points to a note; each note names the works that paragraph draws on, listed in full under Sources.

  1. EBSCO Research Starters, “Abd el-Krim”; Philip Jowett and Martin Windrow, “The Rif War 1921-26”. ↩
  2. EBSCO Research Starters, “Abd el-Krim”; Enrique Vázquez, Awraq. ↩
  3. EBSCO Research Starters, “Abd el-Krim”; Enrique Vázquez, Awraq. ↩
  4. Enrique Vázquez, Awraq. ↩
  5. EBSCO Research Starters, “Abd el-Krim”; Philip Jowett and Martin Windrow, “The Rif War 1921-26”. ↩
  6. EBSCO Research Starters, “Abd el-Krim”. ↩
  7. Enrique Vázquez, Awraq. ↩
  8. Philip Jowett and Martin Windrow, “The Rif War 1921-26”. ↩
  9. Enrique Vázquez, Awraq; Philip Jowett and Martin Windrow, “The Rif War 1921-26”. ↩
  10. Enrique Vázquez, Awraq; Philip Jowett and Martin Windrow, “The Rif War 1921-26”. ↩
  11. EBSCO Research Starters, “Abd el-Krim”; Enrique Vázquez, Awraq. ↩
  12. EBSCO Research Starters, “Abd el-Krim”; Enrique Vázquez, Awraq. ↩

Sources

Frequently asked questions

What was the Rif War?

The war of 1921 to 1926 between the Berber tribes of the Rif in northern Morocco, led by Abd el-Krim, and the colonial armies of Spain and, from 1925, France.

Who was Abd el-Krim?

Muhammad ibn Abd el-Krim al-Khattabi (1882 to 1963), a leader of the Beni Urriaguel tribe who led the Rif uprising, founded the Republic of the Rif and ended his life in exile in Cairo.

How many Spanish soldiers died at Annual?

Estimates differ. EBSCO puts the Spanish dead, soldiers and civilians, at 10,000 to 20,000; Jowett and Windrow give some 13,000 Spanish troops killed.

Why did France enter the Rif War?

In the spring of 1925 Abd el-Krim attacked French outposts in French Morocco, and France joined Spain to defeat him.

How did the Rif War end?

After the Spanish landing at Alhucemas in 1925 and a joint Franco-Spanish offensive in May 1926, Abd el-Krim surrendered to the French and was exiled to Réunion.

Battle honours of your homeland

The turning points of history

Marathon, Gaugamela, Cannae, Constantinople, Waterloo, Stalingrad: the days the world changed course.

Based on your country, which we do not store · why? ·

Ride into the Rif

Echoes of Battle brings the great battles of history to life, scene by scene on the real map. Enlist below and we will send word to your inbox the day it launches.

Or supply the campaign on Ko-fi ›