D. a series of laws passed by ex-Confederate states that restricted the rights of blacks in the South.
The Black Codes were enacted in the South after the Civil War to control the labor and behavior of former enslaved people and to limit their newfound freedoms.