Black Codes were passed by many southern states immediately after the end of the Civil War. They aimed to eliminate the new-found freedoms of former slaves and keep them in a repressive state. However, after the beginning of the Reconstruction era these Codes were removed from law... for a while.