In 1812, he purchased a seat in Parliament for Weymouth, Dorset, England, and voted as a Tory.
In 1818, soon after his marriage with Miss Burnley, the daughter of an East India Company director, he was returned to Parliament as member for the Aberdeen Burghs, Borders, Scotland.