Slavery, of course, continued in the United States until the North’s victory in the Civil War ended it. African Americans outside the South were not slaves but were still victims of racial prejudice.
Even after the Civil War put a stop to slavery, African Americans were still slandered, stereotyped, and attacked. The saying "The more things change, the more they stay the same" applies to this.