Tension between colonial Spanish forces and Rif peoples in northern Morocco culminated in a series of guerrilla attacks led by Berber leader Abd el-Krim on Spanish fortifications in June–July 1921. Within weeks, Spain lost all of its territory in the region. Spanish efforts to regain that territory continued until 1926, when the Rif War ended.