In the Second World War, as Commander-in-Chief, Mediterranean Fleet, Cunningham led British naval forces to victory in several critical Mediterranean naval battles. These included the attack on Taranto in 1940, the first completely all-aircraft naval attack in history, and the Battle of Cape Matapan in 1941. Cunningham controlled the defence of the Mediterranean supply lines through Alexandria, Gibraltar, and the key chokepoint of Malta. He also directed naval support for the various major Allied landings in the Western Mediterranean littoral. In autumn 1943, with the incumbent, Sir Dudley Pound, dying, Cunningham was promoted to First Sea Lord, the professional head of the Royal Navy, a position he held until his retirement in 1946. He was ennobled as Baron Cunningham of Hyndhope in 1945 and made Viscount Cunningham of Hyndhope the following year. After his retirement, Cunningham enjoyed several ceremonial positions, including Lord High Steward at the coronation of Queen Elizabeth II in 1953. He died on 12 June 1963, aged 80.