Slave code, in U.S. history, any of the set of rules based on the concept that slaves were property, not persons. Inherent in the institution of slavery were certain social controls, which slave owners amplified with laws to protect not only the property but also the property owner from the danger of slave violence.