Answer by taking a quote from the following article:

Charles John Huffam Dickens (; 7 February 1812 - 9 June 1870) was an English writer and social critic. He created some of the world's best-known fictional characters and is regarded by many as the greatest novelist of the Victorian era. His works enjoyed unprecedented popularity during his lifetime, and by the 20th century critics and scholars had recognised him as a literary genius.

On 8 June 1870, Dickens suffered another stroke at his home after a full day's work on Edwin Drood. He never regained consciousness, and the next day, five years to the day after the Staplehurst rail crash, he died at Gads Hill Place. Biographer Claire Tomalin has suggested Dickens was actually in Peckham when he suffered the stroke, and his mistress Ellen Ternan and her maids had him taken back to Gad's Hill so the public would not know the truth about their relationship. Contrary to his wish to be buried at Rochester Cathedral "in an inexpensive, unostentatious, and strictly private manner", he was laid to rest in the Poets' Corner of Westminster Abbey. A printed epitaph circulated at the time of the funeral reads:  To the Memory of Charles Dickens (England's most popular author) who died at his residence, Higham, near Rochester, Kent, 9 June 1870, aged 58 years. He was a sympathiser with the poor, the suffering, and the oppressed; and by his death, one of England's greatest writers is lost to the world.  His last words were: "On the ground", in response to his sister-in-law Georgina's request that he lie down. On Sunday, 19 June 1870, five days after Dickens was buried in the Abbey, Dean Arthur Penrhyn Stanley delivered a memorial elegy, lauding "the genial and loving humorist whom we now mourn", for showing by his own example "that even in dealing with the darkest scenes and the most degraded characters, genius could still be clean, and mirth could be innocent". Pointing to the fresh flowers that adorned the novelist's grave, Stanley assured those present that "the spot would thenceforth be a sacred one with both the New World and the Old, as that of the representative of literature, not of this island only, but of all who speak our English tongue."  In his will, drafted more than a year before his death, Dickens left the care of his PS80,000 estate to his longtime colleague John Forster and his "best and truest friend" Georgina Hogarth who, along with Dickens's two sons, also received a tax-free sum of PS8,000 (about PS800,000 in present terms). Although Dickens and his wife had been separated for several years at the time of his death, he provided her with an annual income of PS600 and made her similar allowances in his will. He also bequeathed PS19 19s to each servant in his employment at the time of his death.

What was he up to in the years up until his death?
On 8 June 1870, Dickens suffered another stroke at his home after a full day's work on Edwin Drood. He never regained consciousness,