The bombardment was a consequence of Morocco's alliance with Algeria's Abd-El-Kader against France.
Following several incidents on the border between Algeria and Morocco, and Morocco's refusal to abandon its support of Algeria.

The bombardment of Mogador was preceded by the Bombardment of Tangiers by the same fleet on 6 August 1844, and the Battle of Isly by Maréchal Bugeaud on 14 August 1844.

Mogador was an important harbour, Morocco's first seaport, with consistent relations with Europe.
It had about 15,000 inhabitants, 4,000 of whom were Jews, and 50 Christian traders.
The bombardment was a consequence of Morocco's alliance with Algeria's Abd-El-Kader against France. Following several incidents on the border between Algeria and Morocco, and Morocco's refusal to abandon its support of Algeria.
The bombardment of Mogador was preceded by the Bombardment of Tangiers by the same fleet on 6 August 1844, and the Battle of Isly by Maréchal Bugeaud on 14 August 1844.
Mogador was an important harbour, Morocco's first seaport, with consistent relations with Europe. It had about 15,000 inhabitants, 4,000 of whom were Jews, and 50 Christian traders.
Bombardment of Mogador