In 1907, France responded to the assassination of Émile Mauchamp with a military invasion of Oujda, and to an uprising in protest of the terms of the Treaty of Algeciras with a naval bombardment of Casablanca and a military invasion of the Chaouia plain.