 By late August 1921, Spain lost all the territories it had gained since 1909.Spanish troops were pushed back to Melilla, which was their biggest base in the eastern Rif.Spain still had 14,000 soldiers in Melilla.