Who Created the Black Codes?

In 1865 the Black Codes were created by Southerners. Its how they controlled the slaves and kept them from having any power. Things sure have changed in the world for the better.