D. a series of laws passed by ex-Confederate states that restricted the rights of blacks in the South.
The Black Codes were laws enacted in the Southern states after the Civil War aimed at controlling the labor and behavior of African Americans and limiting their rights and freedoms.