What Were Black Codes?

Black Codes were laws passed to restrict the rights of recently freed slaves. These Codes set limits on the type of work they could do and in some cases even restricted what states they could reside in, preventing them from immigrating from what state to another. These Codes were no longer valid after 1866 when Republicans put the South under Military rule.