After the Civil War, Southern governments passed laws called Black Codes that:

A. granted freedom to African Americans.
B. supplied land to African Americans.
C. banned slavery throughout the South.
D. restricted the rights of African Americans.