Any code of law that defined and especially limited the rights of former slaves after the Civil War. Indeed, one of the main goals of the Civil War, freedoms for enslaved people, was being rolled back. One by one, southern states met Johnson's Reconstruction demands and were restored to the Union. The first order of buisness in these new, white-run governments was to enact black codes, laws that restricted freedmen's rights. The black codes established virtual slavery with provisions such as these: Curfews, Labor Contracts, Limits on women's rights, and land restrictions.