Sir Walter Scott, 1st Baronet, FRSE (15 August 1771 - 21 September 1832) was a Scottish historical novelist, playwright, poet and historian. Many of his works remain classics of both English-language literature and of Scottish literature. Famous titles include Ivanhoe, Rob Roy, Old Mortality, The Lady of the Lake, Waverley, The Heart of Midlothian and The Bride of Lammermoor. Although primarily remembered for his extensive literary works and his political engagement, Scott was an advocate, judge and legal administrator by profession, and throughout his career combined his writing and editing work with his daily occupation as Clerk of Session and Sheriff-Depute of Selkirkshire.

As a boy, youth and young man, Scott was fascinated by the oral traditions of the Scottish Borders. He was an obsessive collector of stories, and developed an innovative method of recording what he heard at the feet of local story-tellers using carvings on twigs, to avoid the disapproval of those who believed that such stories were neither for writing down nor for printing. At the age of 25 he began to write professionally, translating works from German, his first publication being rhymed versions of ballads by Gottfried August Burger in 1796. He then published an idiosyncratic three-volume set of collected ballads of his adopted home region, The Minstrelsy of the Scottish Border. This was the first sign from a literary standpoint of his interest in Scottish history.  As a result of his early polio infection, Scott had a pronounced limp. He was described in 1820 as tall, well formed (except for one ankle and foot which made him walk lamely), neither fat nor thin, with forehead very high, nose short, upper lip long and face rather fleshy, complexion fresh and clear, eyes very blue, shrewd and penetrating, with hair now silvery white. Although a determined walker, on horseback he experienced greater freedom of movement. Unable to consider a military career, Scott enlisted as a volunteer in the 1st Lothian and Border yeomanry.  On a trip to the Lake District with old college friends he met Charlotte Charpentier (or Carpenter), daughter of Jean Charpentier of Lyon in France, and ward of Lord Downshire in Cumberland, an Episcopalian. After three weeks of courtship, Scott proposed and they were married on Christmas Eve 1797 in St Mary's Church, Carlisle (a church set up in the now destroyed nave of Carlisle Cathedral). After renting a house in George Street, they moved to nearby South Castle Street. They had five children, of whom four survived by the time of Scott's death, most baptized by an Episcopalian clergyman. In 1799 he was appointed Sheriff-Depute of the County of Selkirk, based in the Royal Burgh of Selkirk. In his early married days Scott had a decent living from his earnings at the law, his salary as Sheriff-Depute, his wife's income, some revenue from his writing, and his share of his father's rather meagre estate.  After their third son was born in 1801, they moved to a spacious three-storey house built for Scott at 39 North Castle Street. This remained Scott's base in Edinburgh until 1826, when he could no longer afford two homes. From 1798 Scott had spent the summers in a cottage at Lasswade, where he entertained guests including literary figures, and it was there that his career as an author began. There were nominal residency requirements for his position of Sheriff-Depute, and at first he stayed at a local inn during the circuit. In 1804 he ended his use of the Lasswade cottage and leased the substantial house of Ashestiel, 6 miles (9.7 km) from Selkirk. It was sited on the south bank of the River Tweed, and the building incorporated an old tower house.  Scott's father, also Walter (1729-1799), was a Freemason, being a member of Lodge St David, No.36 (Edinburgh), and Scott also became a Freemason in his father's Lodge in 1801, albeit only after the death of his father.Answer this question using a quote from the following article:

when did scott die