Proslavery legislators repressed the very captives they said were docile, and restricted the education of the very people they argued could not be educated. Racist ideas, clearly, did not generate these slave codes. Enslaving interests generated these slave codes. Racist ideas were produced to preserve the enslaving interests.