Robert Dundas, 2nd Viscount Melville, KT, PC, FRS (14 March 1771 – 10 June 1851) was a British statesman, the son of Henry Dundas, the 1st Viscount. Dundas was the Member of Parliament for Hastings in 1794, Rye in 1796 and Midlothian in 1801. He was also Keeper of the Signet for Scotland from 1800. He was appointed a Privy Counsellor in 1807,[citation needed] a Fellow of the Royal Society in 1817,[citation needed] a Knight of the Thistle in 1821,[citation needed] and was Chancellor of the University of St Andrews from 1814. Melville filled various political offices and was First Lord of the Admiralty from 1812 to 1827 and from 1828 to 1830.