Morocco’s horrible political dealings had ended poorly and European nations prayed on the weakened country. In 1912, Spain and France agreed on the creation of a Spanish colony in northern Morocco along the Rif Valley on the Mediterranean. With Spain’s defeat in the Spanish-American War, they were eager to create a new colony. The Rif was occupied by a large, fiercely independent Berber population.
Spanish troops attempted to pacify the Berbers, but Abd El-Krim, a member of the Beni Urriaguel, decided to unite the Berbers against the Spanish. Establishing the Rif Republic in 1920, El-Krim banded together guerillas to resist the Spanish troops in the area. The Berber tribesmen were not numerous at all, but were great at skirmishing against their enemies. They had traditionally repelled Arab invasions of their home in the Rif Mountains. The Spanish would be one of their toughest challenges yet. General Manuel Fernandez Silvestre commanded the Spanish troops at the front, but quick attacks by El-Krim forced him to abandon his position at Anwal on July 22, 1921. The Spaniards were hit quickly and were not prepared whatsoever, suffering staggering casualties. Silvestre was killed along with some 10,000 Spaniards and Spain was smashed back to the coast.
Things stayed the same until 1924 when the Spanish government snapped into action. Miguel Primo de Rivera recalled Spanish troops to form a defensive line at Tetuan and came under major scrutiny. Abd El-Krim and his Muslim Berber army took control of the land the Spanish evacuated and established a law code, built roads, and created trade agreements. He turned towards the French colony in Morocco and decided to unite his Republic with the other Berbers. Attacking Fes, the Berbers caused heavy French casualties in a quick ambush. The French made the decision to ally with the Spanish in order to combat the Berber threats to their colonies. Philippe Petain took control of the French in Morocco and in a collaboration with the Spanish, the French marched 20,000 troops to deal with the threat. Spain landed 18,000 soldiers at Alhucemas Bay in September 1925 and the two sides joined to fight the 10,000 Berbers. Abd El-Krim’s guerillas couldn’t withstand such force and began to be pushed back from the coast. The Spanish captured Ajdir on October 2 and dealt a huge blow to the Riffians.
By March the next year, El-Krim had been so badly defeated that he asked for peace talks with the Europeans. The Spanish refused and continued to hammer Berber troops out of their lands. El-Krim was captured by the French in April and he was forced to unconditionally surrender. He and his family were sent to Reunion in exile and Morocco was reclaimed by Spain and France. The Rif War sparked thoughts of independence in the area and would later spring to life after World War Two. This also marked the beginning of the Spanish problems. Soon, the Spanish Civil War would tear the country in two and serve as the training ground for the European nations before World War Two.