He was born in Midlothian on 8 June 1778. He was the second son of Alexander Murray, Lord Henderland, Lord of Session and Justiciary. His mother was Katherine Lindsay, daughter of Sir Alexander Lindsay of Evelick, Perthshire, and a niece of the first Lord Mansfield. His brother was William Murray of Henderland FRSE. Murray was educated successively at the Edinburgh High School, at Westminster School, and at the University of Edinburgh. At Edinburgh he was a member of the Juvenile Literary Society, of which Henry Brougham and Francis Horner were the leading spirits, and of the Speculative Society. He corresponded with Horner, till the latter's death in 1817, and his letters form a major part of the Memoirs of Horner, 1843. In 1799, Murray passed to the Scottish bar. When the Edinburgh Review was founded, Sydney Smith, Horner, Francis Jeffrey, Thomas, and he, met for a time as joint editors in Jeffrey's house. He continued as contributor. His early career at the bar was distinguished, but he had no need to develop it further. A liberal, Murray threw in his lot with the young Edinburgh Whig lawyers, and took part in the agitation before the Reform Bill of 1832. In December 1832, he was returned unopposed for Leith Burghs, which had been enfranchised under the bill. He was appointed recorder of the great roll and clerk of the pipe, a sinecure in the Scottish exchequer which he did not long hold. On the elevation of Jeffrey to the bench in 1835, Murray succeeded him as Lord Advocate. He introduced a large number of bills into the House of Commons, including measures for the reform of the universities, for giving popular magistracies to small towns, for enabling sheriffs to hold small debt circuits, for the reform of the court of session, and for amending the bankruptcy law, but only succeeded in carrying a few minor reforms. In 1839, he was savagely attacked in parliament by his old friend Brougham for his conduct in the case of five cotton-spinners who were tried on a charge of murder arising out of a trade-union dispute. He answered the charges in the House of Commons. Murray in 1839 left parliament for the Court of Session. He was knighted that year, adopting the courtesy title Lord Murray. In 1844 Murray was elected a Fellow of the Royal Society of Edinburgh his proposer being Thomas Stewart Traill. He served as the Society's Vice President from 1849 to 1857. He remained on the bench till his death at his house 11 Great Stuart Street on the Moray Estate in Edinburgh on 7 March 1859. He was buried in his parents' grave, marked by an elaborate monument, in St Cuthbert's churchyard in central Edinburgh.
Family
He was brother to William Murray of Henderland FRSE. In 1826, Murray married Mary Rigby, the eldest daughter of William Rigby of Oldfield Hall in Cheshire. Their only son died in boyhood.
Character
Murray's hospitality was profuse and famous. Walter Scott in his Diary records evenings spent at Murray's house, and Harriet Martineau celebrates his tea-parties at St. Stephen's when he was Lord Advocate. In Edinburgh and in his country residence at Strachur on Loch Fyne, and afterwards in Jura, he gathered friends round him, while Lady Murray, an accomplished musician, helped him to entertain them.