Say the Republicans win the Civil War and Mussolini and the WAllies support a Rif Republic to keep the commies out. Leads to a revived Stresa Front perhaps as well, thus averting the Fall of France and making *World War Two about fighting communism; thus a stronger and more assertive France, allied to both Italy and Great Britain, and with far less support for letting Morocco go; with Italy in Libya, Britain in Egypt, the USSR dead and the US less involved in Europe decolonization is slower overall, so by the time Morocco does gain independence (if it does) the Rif Republic is sort of an Austria situation.
Alternately the Moroccans (or the Rif if the Republicans keep ahold of it) go communist and the Rif stays anti-communist per the above, a la Taiwan and China.