Answer:
Slave codes were passed so slaves could be kept under control and they wouldn't cause a rebellion.
Explanation:
Each colony to pass a series of laws restricting slaves' behaviors because they feared they might cause a rebellion The laws were known as slave codes. Although each colony had different ideas about the laws, there were similar laws in similar areas.
Hope this helps :D