As a result of this he was appointed to the command of the sixth-rate HMS Calpe in which he took part in the Battle of Algeciras Bay in July 1801 during the French Revolutionary Wars.
After serving for four years as Whig Member of Parliament for Richmond, he was given command of the fifth-rate HMS Euryalus and took part in the unsuccessful Walcheren Campaign in July 1809 during the Napoleonic Wars.
He went on to be Member of Parliament for Orkney and Shetland and became First Naval Lord in the First Melbourne ministry in August 1834 but died in office just two months later in October 1834.
[2] Despite the crew's exertions, the Queen Charlotte eventually blew up with the loss of 673 people out of its complement of 840 officers, men and boys, including the Captain and her first Lieutenant.
The British captured the third-rate St Antoine, with Superb and Calpe then assisting in securing the prize and removing the prisoners.
[10] Euryalus was asked, along with HMS Ocean and several other warships to act as escorts to a large convoy bound for Oporto, Lisbon and the Mediterranean.
Towards the end of 1807 Euryalus returned to England with Niger as escort to a convoy of several thousand troops under Sir John Moore from Gibraltar.
[12] During the same year Dundas went to Elbing, a small port in West Prussia about 60 kilometers east of Dantzig (now in Poland) to embark Princess Marie Josephine Louise of Savoy (the consort of Louis XVIII), the Duc du Berry and other members of the French royal family.
[13] Later she was stationed off Cherbourg under the orders of Captain Sir Richard King, and in November 1809 she captured the French privateer lugger Etoile of 14 guns and 48 men.
[14] In the spring of 1810 Euryalus escorted a large convoy from Spithead to Portugal and the Mediterranean and was then attached to Captain Blackwood's inshore squadron off Toulon.
[11] Early in 1811 Dundas temporarily took command of the 74-gun third rate Achille until relieved by Captain Aiskew Paffard Hollis, who had transferred from Standard.
Duncan of Imperieuse off Porto D'Anzo where he and Resistance, Swallow, Eclair and Pylades had been watching a convoy for some days with the intention of attacking it.
After the ships opened fire, landing parties brought out the 29 vessels of the convoy, 20 of which were laden with wood for the arsenal at Toulon.
[16] On 30 November 1812 Dundas was placed in command of a small squadron consisting of Edinburgh, Furieuse and Termagant which landed troops at Viareggio in Italy.
Some 600 cavalry and infantry from the Livorno garrison attacked the British troops, who routed them, capturing two field pieces and a howitzer.
He was elevated to First Naval Lord in the First Melbourne ministry in August 1834[21] but died in office, unmarried, of apoplexy at Upleatham in North Yorkshire just two months later on 7 October 1834.