Mogador was present during the British attack on Mers-el-Kébir on 3 July 1940 and was severely damaged by a hit from an armour-piercing 15 inches shell in the rear hull that detonated her ready depth charges although it failed to detonate itself.