The French conquest of Morocco began with the French Republic occupying the city of Oujda in 29 March 1907. The French launched campaigns against the Sultanate of Morocco which culminated in the signing of the Treaty of Fes and establishment of the French Protectorate in Morocco on 30 March 1912. France later concluded, on the 27th November, the Treaty of Madrid with the Kingdom of Spain which established the Spanish protectorate in Morocco. The French still conducted a series of military operations to pacify rebellions in Morocco until 1934.
Pacification of Morocco (1907–1927).