In the United States, the Black Codes were 
laws passed by Southern states in 1865 and 1866, after the Civil War. 
These laws had the intent and the effect of restricting African 
Americans' freedom, and of compelling them to work in a labor economy 
based on low wages or debt.