slave codes (like the 1833 Alabama code) were sets of laws that restricted aspects of slaves’ lives to various degrees depending on the state. These codes controlled slave travel, marriage, education, and employment. They also set rights for slave owners.