The Adventures of Tom Sawyer is an 1876 novel by Mark Twain about a boy growing up along the Mississippi River. It is set in the 1840s in a fictional town based on Hannibal, Missouri, where Twain lived as a boy. The novel depicts several adventures, often with the main character's friend Huckleberry Finn. Originally a commercial failure, the book ended up being the bestselling of any of Twain's works during his lifetime. The book is considered by many to be a masterpiece of American literature and one of the first novels to be written on a typewriter.