The Adventures of Tom sawyer was a novel written by Twain in 1835. It mainly told the adventure story of a young man, Tom sawyer, and his partner, Huckleberry Finn. The author had two main purposes in the process of writing the adventures of Tom sawyer. The first purpose was to show the class division and class opposition in American society through the adventures of Tom sawyer and Huckleberry Finn. In the novel, the experiences of Tom sawyer and Huckleberry Finn reflect the gap between the rich and the poor, and the different attitudes of people of different social classes towards problems. The second purpose was to show the complexity and variety of human nature through the adventures of Tom sawyer and Huckleberry Finn. In the novel, Tom sawyer and Huckleberry Finn were both brave and witty, but also selfish and cunning. Their images showed different human characters and characteristics. Therefore, when the author wrote The Adventures of Tom sawyer, he aimed to show the social class division and class opposition in American society through the adventure stories of Tom sawyer and Huckleberry Finn, and at the same time show the complexity and variety of human nature.