The Adventures of Tom Sawyer by Mark Twain is an 1876 novel about a young boy growing up along the Mississippi River. It is set in the 1840s in the fictional town of St. Petersburg, inspired by Hannibal, Missouri, where Twain lived as a boy.
Samuel Clemens, the sixth child of John Marshall and Jane Lampton Clemens, was born two months prematurely and was in relatively poor health for the first 10 years of his life. His mother tried various allopathic and hydropathic remedies on him during those early years, and his recollections of those instances (along with other memories of his growing up) would eventually find their way into Tom Sawyer and other writings. Because he was sickly, Clemens was often coddled, particularly by his mother, and he developed early the tendency to test her indulgence through mischief, offering only his good nature as bond for the domestic crimes he was apt to commit. When Jane Clemens was in her 80s, Clemens asked her about his poor health in those early years: "I suppose that during that whole time you were uneasy about me?" "Yes, the whole time," she answered. "Afraid I wouldn't live?" "No," she said, "afraid you would."
Insofar as Clemens could be said to have inherited his sense of humour, it would have come from his mother, not his father. John Clemens, by all reports, was a serious man who seldom demonstrated affection. No doubt his temperament was affected by his worries over his financial situation, made all the more distressing by a series of business failures. It was the diminishing fortunes of the Clemens family that led them in 1839 to move 30 miles (50 km) east from Florida, Missouri, to the Mississippi River port town of Hannibal, where there were greater opportunities.