Immediately after the Civil War ended, Southern states enacted "black codes ... worked off. “Pig Laws” unfairly penalized poor African Americans for crimes such as stealing a farm animal.