Barrister, judge, historian and conservationist. Born in Edinburgh and educated at the Royal High School and the University of Edinburgh. He was a member of a distinguished legal family, being a nephew of Henry Dundas, Viscount Melville (1742 - 1811). Cockburn became one of the leading barristers of his time and took part in some noted criminal cases. Taking up the post of Solicitor General for Scotland in 1830, Cockburn was responsible for preparing the Scottish Reform Act. He was appointed a Judge in the Court of Session in 1834, taking the title Lord Cockburn. His journals, which provide a remarkable social history of Scotland at the time, were published posthumously as Memorials of his Time (1856) and Circuit Journeys (1888).
He was a noted conservationist of Edinburgh's built environment. The Cockburn Society, which continues to have a significant role in the protection of the city, is named in his honour.
He died at his home at Bonaly.