Tom Sawyer lived with his Aunt Polly and his half-brother, Sid. Tom dirties his clothes in a fight and is made to whitewash the fence the next day, as punishment. He cleverly persuades his friends to trade him small treasures for the privilege of doing his work. In Sunday school, Tom does not manage to get a Bible because Mr. Walters knew he was trading tickets. Tom falls in love with Becky Thatcher, a new girl in town, and persuades her to get "engaged" by kissing him. But their romance collapses when she learns Tom has been "engaged" previously, to a girl named Amy Lawrence. Shortly after being shunned by Becky, Tom accompanies Huckleberry Finn to the graveyard at night, where they witnessed the murder of Dr. Robinson. Tom, Huck, and Joe Harper run away to an island. While enjoying their newfound freedom, the boys become aware that the community is sounding the river for their bodies. Tom sneaks back home one night to observe the commotion. After a brief moment of remorse at his loved ones' suffering, Tom is struck by the idea of appearing at his funeral. Back in school, Tom gets himself back in Becky's favour after he nobly accepts the blame for a book she has ripped. Soon, Muff Potter's trial begins, in which Tom testifies against 'Injun Joe'. Potter is acquitted, but 'Injun Joe' flees the courtroom through a window. Tom then begins to fear for his life as 'Injun Joe' is at large and can easily find him. Summer arrives, and Tom and Huck go hunting for buried treasure in a haunted house. After venturing upstairs they hear a noise below. Peering through holes in the floor, they see 'Injun Joe' disguised as a deaf-mute Spaniard; 'Injun Joe' and his companion plan to bury some stolen treasure of their own. From their hiding spot, Tom and Huck wriggle with delight at the prospect of digging it up. Huck begins to shadow 'Injun Joe' nightly, watching for an opportunity to nab the gold. Meanwhile, Tom goes on a picnic to McDougal's Cave with Becky and their classmates. That same night, Huck sees 'Injun Joe' and his partner making off with a box. He follows and overhears their plans to attack the Widow Douglas. By running to fetch help, Huck stops the violence and becomes an anonymous hero. A week later, Tom takes Huck to the cave and they find the box of gold, the proceeds of which are invested for them. The Widow Douglas adopts Huck, and, when Huck attempts to escape civilised life, Tom tricks him into thinking if Huck returns to the widow, he can join Tom's robber band. Reluctantly, Huck agrees and goes back to the Widow Douglas.