In "The Adventures of Huckleberry Finn", by Mark Twain, contrasts life on the raft with life on shore. The contrast between the two pertain to the issue of freedom. Jim and Huckleberry life on the shore are driven by the rules of the society. On leaving the shore, being on the raft indicates that they are liberated from the societal norms and can act according to their conscience.
Huckleberry says " there weren't no home like a raft, after all. Other places do seem so cramped up and smothery, but a raft does't. You feel mighty free and easy on a raft."
This also indicates the short period of freedom. Therefore, when they step back on the shore, the societal rules are imposed on them. Which they must abide by them again.