The laws passed by the slave- holding Southern States to safeguard the white population and protect the owning rights of the Masters were called Black Codes.
Black Codes were passed after the Civil war in 1865 and 1866 which deny the slaves and free blacks equal rights like right to vote, education etc and equal treatment under the law.