Walter Scott's last years were blighted firstly by a series of strokes which greatly impaired his physical and mental powers, and secondly by enormous debts, which he attempted to pay off by writing novels with all the exertion and diligence he could still muster.
By the middle of April 1832, the novel was finished, and the manuscript was dispatched to his publisher Robert Cadell.