Chapter 26 of The Adventures of Huckleberry Finn represents another demonstration by Mark Twain of the innate kindness and consideration that shaped Huck's actions, in contrast with the attitudes of the general society in which he lived.
Huck is aware that crossing the plans of the king and duke could be risky to both his personal welfare and to Jim. However, Huck has become fond of the Wilks sisters and is forced to make a choice between protecting himself and protecting the girls.
They all jest laid theirselves out to make me feel at home and know I was amongst friends. I felt so ornery and low down and mean, that I says to myself, My mind's made up; I'll hive that money for them or bust.
Huck follows his conscience and steals the money in order to foil the plans of the frauds who were planning to steal everything they could get from the possessions and estate of Peter Wilks and his family. The only consolation Huck has when the slaves are sold and separated is the knowledge that the sale was not valid and that they would soon be returned home.