Answer:
The black codes were created by people to take away black people's rights, even though the 14th amendment said that all citizens have equal rights. Racist Americans still tried to force these black codes on African Americans, which is why it violated that amendment.