There have been several Spanish colonial wars in Morocco or Hispano-Moroccan wars: Conquest of La Mamora ; Spanish-Barbary Conflicts(1694–1792) Hispano-Moroccan War (1859–1860) First Melillan campaign (1893–1894) Second Melillan campaign (1909–1910) Third Melillan campaign (1911–1912) Rif War (1921–1926) Ifni War (1957–1958)
Rif War, also called War of Melilla, Rif also spelled Riff, (1921–26), conflict between Spanish colonial forces and Rif peoples led by Muhammad Abd el-Krim. It was fought primarily in the Rif, a mountainous region of northern Morocco.