"Resolution" took part in the Norwegian Campaign, seeing action at the Battles of Narvik in April 1940. The following month she was struck by a German bomb, but was not seriously damaged. Also in May, "Ramillies" was assigned to the Mediterranean Fleet in anticipation of Italy's entry into the war. The following month, "Resolution" had joined Force H, and on 3 July she participated in the destruction of the French Fleet at Mers-el-Kebir. Following the Italian declaration of war, "Ramillies" bombarded Italian positions in Italian Libya in mid-August. In September, "Resolution" steamed south to Dakar with Force H to neutralise French warships there, but during the Battle of Dakar, she was torpedoed and badly damaged by a French submarine. In October, "Revenge" bombarded the port of Cherbourg in occupied France to destroy German supplies being assembled for the planned invasion of Britain, Operation Sealion. "Ramillies" was present with the convoy that was attacked by Italian warships during the Battle of Cape Spartivento in late November but she was not involved in the battle.