Steuart's father had been allowed to return home after the end of the war in 1763, and was formally pardoned in 1771.
On 29 April 1784 Denham was elected Member of Parliament for Lanarkshire through the influence of the Duke of Hamilton.