Family and final years
In 1818, Lockhart met Sir Walter Scott, who introduced him to his family. Lockhart married Scott's eldest daughter Sophia in April 1820. It was a happy marriage, with winters spent in Edinburgh and summers at Chiefswood, a cottage on Scott's Abbotsford estate, where the Lockharts' first child John Hugh ‘Johnnie’ was born. John Hugh was born with spina bifida and spent much of his time with his grandfather, listening to Scott’s stories about Scottish history, hence Scott’s book, Tales of a Grandfather. Johnnie died in 1831, at age eleven.
The Lockharts experienced many personal losses. A baby girl died soon after birth. Sir Walter died in 1832 and in 1837, Sophia died suddenly, at age 38. Lockhart also struggled with the loss of his parents and sister. His third child was Walter Scott Lockhart, who became an army officer, but fell into bad company, ruined his health, and died in his father’s arms in January 1853 at the age of 26. Lockhart became seriously depressed, almost starving himself to death. He resigned his editorship of the Quarterly Review and spent some time in Italy, but returned without recovering his health.
He moved back to Scotland to live with his only surviving child Charlotte, who was settled at Abbotsford with her husband James Hope-Scott, grandson of the 2nd Earl of Hopetoun. The two had converted to Catholicism, which made for an uncomfortable atmosphere in the home (Charlotte would die in childbirth in 1858, at age 30). Lockhart died a few weeks after his arrival at Abbotsford, on 25 November 1854. He was buried at Dryburgh Abbey, beside his son and father-in-law.
His obituary in The Times, dated 9 December 1854, included the paragraph "Endowed with the very highest order of manly beauty, both of features and expression, he retained the brilliancy of youth and a stately strength of person comparatively unimpaired in ripened life; and then, though sorrow and sickness suddenly brought on a premature old age which none could witness unmoved, yet the beauty of the head and of the bearing so far gained in melancholy loftiness of expression what they lost in animation, that the last phase, whether to the eye of painter or of anxious friend, seemed always the finest."