Tangier the years leading up to the First World War, Tangier had a population of about 40,000, about half Muslim, a quarter Jewish, and a quarter European Christians. Of the Europeans, about three-quarters were Spanish artisans and labourers. In 1912, Morocco was effectively partitioned between France and Spain; Spanish Morocco covered the country's far north and far south while the French protectorate covered the central remainder. The last Sultan of independent Morocco, Moulay Hafid, was exiled to the Sultanate Palace in the Tangier kasbah after his forced abdication in favour of his brother Moulay Yusef. Tangier was made an international zone
Tangier 927, Ceuta in 931, and Tangier in 949. Tangier's governor was subsequently named chief over Cordova's Moroccan possessions and allies. Ali ibn Hammud, named Cordova's governor for Ceuta in 1013, took advantage of the realm's civil wars to conquer Tangier and Malaga before overrunning Cordova itself and proclaiming himself caliph in 1016. His Barghawata ally Rizḳ Allāh was then permitted to rule from Tangier with general autonomy. Yusuf ibn Tashfin captured Tangier for the Almoravids in 1077. It fell to Abd al-Mumin's Almohads in the 1147 and then flourished under his dynasty, with its port highly active. Like Ceuta, Tangier