The Mississippi Black Codes were laws passed in several Confederate states after the Civil War to restrict the rights of freed slaves and ensure their availability as a cheap labor force. The codes imposed strict oversight on black movement and employment and prohibited blacks from owning firearms or testimony against whites. A Republican Congress would later act to suppress the racist Black Codes.