From the reddit
With the fall of France, Spain decided to occupy the Moroccan protectorate and turn it into a Spanish territory under the reign of Mohammed V of the Alaouite Dynasty. While the Alaouites have been rather quiet under their Spanish lords, Moroccan independence movements have started to become more popular across the entirety of the territory. Combine this with a general anti-Spaniard sentiment among the population and the great ambitions of Francisco Franco regarding Morocco and the region has become a ticking time bomb ready to explode into civil conflict.
Without anyone to stop them, Spain appears to have simply annexed them