Black codes were laws introduced in Southern states after the American Civil War that restricted the rights of black people. They were an effort by white lawmakers to maintain control over black citizens and preserve white supremacy. Synonyms for black codes include Jim Crow laws, segregation laws, racial segregation statutes, and discriminatory legislation. These laws created a system of apartheid-like racial segregation that lasted until the mid-1960s. They were characterized by separate facilities for blacks and whites, denial of voting rights and access to education, and restrictions on employment opportunities. Despite their abolition, the effects of black codes remain deeply embedded in American society today.