During his adventures on the Mississippi River Huck Finn encounters one family after another. Having left an abusive father behind, Huck appears to be trying out various familial situations as he travels. It seems like he’s pretty keen on getting a family of his own because most of Huck’s deceptions involve him making up a fictitious "family" of his own that fits in with the story. He develops many pseudo-family relationships during his travels. Interestingly, the strongest family-like bond he creates is with his own friends, and particularly with Jim and Tom. It remains unclear whether or not Huck realizes and accepts this fact, but he definitely recognizes the unmatchable strength of the bonds he and his friends share. As a semi-orphan, Huck replaces his missing family with his friends.
Huck’s journey along the river and the tales he tells about family are all part of his search for the perfect home. But he finds the entire familial system so flawed that he gives up and heads west at the end of the novel.
Huck’s search for the perfect family ends in his realization that he already has a perfect family in his friends.