After several days by himself, Huck was very glad to have Jim's company. "I was ever so glad to see Jim. I warn't lonesome, now."
Huck and Jim shared all types of adventures after they reunited. Exploring the house being washed down the flooded river, they cooperated in obtaining a wonderful haul of supplies from the house and Jim protected Huck from discovering that the dead man in the house was Pa.
Huck first realized that he didn't want to turn Jim in as he was paddling the canoe to the shore to do so. Hearing Jim send him off, Huck began to understand how Jim viewed the situation.
'Pooty soon I'll be a-shout'n for joy, en I'll say, it's all on accounts o' Huck...you's de bes' fren' Jim's ever had; en you's do only fren' ole Jim's got now.'
Huck lies to the men he encounters in order to prevent them from seeing Jim on the raft, and deals with mixed feelings - not for the last time - when the men have left.
I got aboard the raft, feeling bad and low, because I knowed very well I had done wrong,...Then I thought a minute, and says to myself, hold on,-s'pose you'd a done right and give Jim up; would you felt better than what you do now? No, says I, I'd feel bad-I'd feel just the same way I do now.
Huck realizes fairly quickly that the "duke" and "king" are not royalty, but to please them and because Jim doesn't figure out they are imposters as quickly, they both do their best to humor the pretenders. Much later, when Huck manages to get away from the crowd digging up the buried Peter Wilks and the gold, Jim was at the ready with the raft so they could make their escape from the fakers.
when I struck the raft at last, I was so fagged I would a just laid down to blow and gasp if I could afforded it. But I didn't. As I sprung aboard I sung out: 'Out with you, Jim, and set her loose! Glory be to goodness, we're shut of them!'
Eventually, they do free themselves of the "royals," but not until they've sold Jim to the Phelps family. Huck masquerades as Tom Sawyer once he understands whose farm he has come to; Tom arrives and is intrigued with the possibilities of the pretending to be each other and with the challenge of helping Jim escape; and at long last, everyone reassumes their rightful identity and Jim's freed status is confirmed.