Answer :
to restrict the african americans. and to convince them to move to north states
In the South, "slave codes" placed significant restrictions on black Americans who were not themselves slaves. A major purpose of these laws was maintenance of the system of white supremacy that made slavery possible.