Cunningham was given command of Scorpion (1911-18) and during the First World War was active in the Mediterranean.
Promoted to vice admiral he was given command of the Mediterranean fleet in 1937. On the outbreak of the Second World War Cunningham had the task of maintaining control of the area and 11th November 1940 his fleet put Littorio, Conte di Cavour and Duilio out of action.
When Germany invaded Greece the fleet was called into action and during the fighting the British lost 2 battleships, an aircraft carrier, five cruisers and eight destroyers. Over 2,000 seamen lost their lives during this campaign.
Winston Churchill appointed Cunningham as first sea lord on the death of Dudley Pound on 21st October 1943. He was upset when Admiral Ernest King decided he did not want the Royal Navy involved in the D-Day landings.
In 1945 Cunningham was created Viscount of Hyndhope. After retiring from the navy he published A Sailor's Odyssey (1951) and was lord high commissioner to the General Assembly of the Church of Scotland. Andrew Cunningham died in London on 12th June, 1963.