Black Codes were instituted on a state level and were passed by mainly Southern states to keep African Americans in a system of virtual slavery. These are NOT the same things as “Jim Crow” laws, which were brought to bear at the end of the 19th century.