Haggart was a career thief who was hanged in Edinburgh in 1821 for the murder of a jailer in Dumfries. While awaiting execution, he was said to have partly written and partly dictated his life story, to be published after his death to raise money for his family.