The Black Code was the forerunner to the more formal Jim Crow “separate but equal” laws of the 20th century. Enacted following the Civil War, the laws varied from place to place and included such restrictions as curfews, poll taxes, and papers that certified employment.