It set out to control the behavior of enslaved workers. It outlined punishments for enslaved workers who broke rules. It established laws for free people of color to follow in society. It outlined laws for the interaction of whites and free people of color.
Hope it helps❤