The Adventures of Huckleberry Finn was published on December 10 1884. This was at a political time, his book was written when slavery was still a thing.
Folklore holds an important place in American literature of the 1880's and 1890's. In these decades a strong movement among folklorists to record the beliefs and lore of former slaves was accompanied by a literary counterpart. Writers like Joel Chandler Harris and Charles Chesnutt created a body of work which incoporated these beliefs and tales.