South Carolina issues one of the first set of black codes "to regulate the relations of persons of color". Among the codes included those of illegal interracial marriages, master apprentice relations and service contracts.