Huck and Jim's adventures end up on a happy note. Huck asks what Tom had in mind with Jim:
what it was he’d planned to do if the evasion worked all right and he managed to set a [slave] free that was already free before?
Tom relates a fanciful set of tales about rafting down river with Huck and Jim, paying Jim for his time, and then having a torchlight procession to honor the freed slave. Huck, showing the greater maturity he has gained through time on the river, where his "adventures" have been more than boyish hijinks, comments dryly,
I reckoned it was about as well the way it was.
Jim is freed, made much of, and delighted to be given forty dollars by Tom, which was a good deal of money at that time. It is worth noting that Jim is treated with condescension and racism, considered worthwhile and praised for nursing and helping Tom, a white person, and not given anywhere near the money Huck has.
Huck is still worried about his father and assumes he's already spent all of his inheritance. Jim tells him no, that it was Huck's father's corpse he had seen on the river:
Doan' you 'member de house dat was float'n down de river, en dey wuz a man in dah, kivered up, en I went in en unkivered him and didn' let you come in? Well, den, you kin git yo' money when you wants it, kase dat wuz him.
This means that Huck's six thousand dollars is intact. Huck comments on how hard it is to write a book and says he will never do it again. He then states that he plans to head out for the western territories because he has heard that Aunt Sally intends to adopt him and "sivilize" him. He ends on these words about civilization: "I been there before."
In sum, the novel ends in a glow of good feeling: Jim is freed, Jim and Huck both attain the American Dream of money, and Huck plans to seek another version of the American Dream—pursuing freedom from civilization in the West. For these reasons, although Huck and Jim have faced many harrowing situations, the novel can be labeled a romance: it has a happy ending.