When slavery ended in the United States, freedom still eluded African Americans who were contending with the repressive set of laws known as the black codes. Widely enacted throughout the South following the Civil War—a period called Reconstruction—these laws both limited the rights of Black people and exploited them as a labor source.