first between September 1780 and May 1782 and again April–December 1783. On 17–18 February 1783, Adam spoke and voted against peace with the United States. After that, despite his past animosity to Charles James Fox, Adam advocated the Fox-North Coalition, as the only way to stop Lord North's party becoming politically irrelevant. Adam was active in gathering detailed information about the Scottish constituencies, to help his political associates. Thereafter, he was less involved in politics as he developed his career at the English bar. Through his friendship with the Prince of Wales he was appointed Solicitor General for Scotland (1802–1805) and then Attorney General to the Prince (1805–1806). From 1806 to 1815 he was Chancellor of the Duchy of Cornwall, another office in the gift of the Prince. Adam was Lord Lieutenant of Kinross-shire from 1802 until his death. He became a friend of Sir Walter Scott. In 1812, he published Vitruvius Scoticus, a collection of his grandfather William Adam's architectural projects, which the elder William had first initiated in 1727. During the Regency of the Prince of Wales, Adam received judicial office in Scotland. Between 1814 and 1819 he was a Baron of the Scottish Court of Exchequer. Adam became a member of the Privy Council on 17 March 1815. He became Lord Chief Commissioner of the Scottish jury court from 1815 until his death. In 1832-33, his home address was 31 Charlotte Square in Edinburgh. He died in Edinburgh on 17 February 1839, and was buried at Greyfriars Kirkyard He lies in the huge family vault built for his grandfather, William Adam the architect, facing his father, John Adam. The vault lies south-west of the church, in front of the Covenanters Prison. Family On 7 May 1777, William Adam married Eleanora Elphinstone (died 4 February 1800), daughter of Charles, 10th Lord Elphinstone. They had six children: John (4 May 17794 June 1825), civil servant of the East India Company, served as acting Governor-General of India in 1823. Charles (6 October 178016 September 1853), Admiral in the Royal Navy, MP, William George KC (6 December 178116 May 1839), lawyer, Accountant-General of the Court of Chancery. Frederick (17 June 178417 August 1853), General in the British Army, Governor of Madras 1832–37. Francis James (24 March 17918 June 1820) died of yellow fever at sea with Charles Clementina (died 29 October 1877), married on 27 April 1807, John Anstruther-Thomson, DL, of