He was born in Edinburgh on 10 November 1790,[citation needed] the son of Janet Irving and Captain James Clerk.
[2] He built a new mansion designed by Walter Newall on his estate in Kirkcudbrightshire at Glenlair.
[3] He was elected a Fellow of the Royal Society of Edinburgh in 1821, his proposer being Sir George Steuart Mackenzie.
[4] In the 1830s he is recorded as living at 14 India Street in Edinburgh's Second New Town, which is where James Clerk Maxwell was born.
[4] He was the brother of Sir George Clerk of Penicuik, and brother-in-law of James Wedderburn.