quality:correction
Bombardment of Casablanca

The Treaty of Algeciras of 1906 formalized French preeminence in Morocco and included three measures that directly impacted Casablanca: that French officers would control operations at the customs office and seize revenue as collateral for loans given by France, that the French holding company La Compagnie Marocaine would develop the port of Casablanca, and that a French-and-Spanish-trained police force would be assembled to patrol the port.

To build the port's breakwater, narrow-gauge track was laid in June 1907 for a small Decauville locomotive to connect the port to a quarry in Roches Noires, passing through the sacred Sidi Belyout graveyard. In resistance to this and the measures of the 1906 Treaty of Algeciras, tribesmen of the Chaouia attacked the locomotive, killing 9 Compagnie Marocaine laborers—3 French, 3 Italians, and 3 Spanish.

In response, the French bombarded the city in August 1907 with multiple gunboats and landed troops inside the town, causing severe damage and killing between 600 and 3,000 Moroccans. Estimates for the total casualties are as high as 15,000 dead and wounded. In the immediate aftermath of the bombardment and the deployment of French troops, the European homes and the Mellah, or Jewish quarter, were sacked, and the latter was also set ablaze.

As Oujda had already been occupied, the bombardment and military invasion of the city opened a western front to the French military conquest of Morocco.