 The French military conquest of Morocco began in March 1907 when General Lyautey occupied Oujda, ostensibly in response to the murder of the French doctor Émile Mauchamp in Marrakesh.A western front was opened in August 1907 with the Bombardment of Casablanca and the following "pacification of the Chawiya.