Berber rebels in the Rif Region first established the Rif Republic (1921-1926) under Abd el-Krim against Spanish colonial rule, the state lasted until 1925 when the rebels tried to take the city of Fes, in a failed attempt to expand the republic into French Morocco.