Why did the south pass Slave codes ?
Since the colonial period, colonies and states had passed laws that discriminated against free Blacks. In the South, these were generally included in "slave codes"; the goal was to reduce the influence of free blacks (particularly after slave rebellions) because of their potential influence on slaves.