The Bombardment of Casablanca (Arabic: قصف الدار البيضاء; French: Le bombardement de Casablanca) was a French naval attack that took place from 5 to 7 August 1907, destroying the Moroccan city of Casablanca. France used mainly artillery fire from armored cruisers to bomb the city and targets in the surrounding area, which caused an estimated 1,500 to 7,000 Moroccan deaths. The bombardment of Casablanca opened a western front to the French conquest of Morocco after Hubert Lyautey's occupation of Oujda in the east earlier that year.
The bombardment came after an attack of tribesmen of the Shawiya opposed to the terms of the Treaty of Algeciras of 1906 to the French presence in the customs house and to the construction of a railroad over a sanctuary, specifically on European employees of the Compagnie Marocaine operating a Decauville train from a quarry in Roches Noires to the Port of Casablanca on 30 July 1907. When the French cruiser Galilée disembarked a landing party of 75 soldiers on 5 August, an insurrection broke out in the city.