Black Codes and Pig Laws August 2020 Immediately after the Civil War ended, Southern states enacted “black codes” that allowed African Americans certain rights, such as legalized marriage, ownership of property, and limited access to the courts, but denied them the rights to testify against whites, to serve on juries or in state militias, vote, or start a job without …