Slave owners did anything that they could to keep slaves from running away. They did not want the slaves to do or learn anything that might help them. One way the owners did this was with laws called slave codes.
Slave codes were laws that were passed in states in the South. The laws tried to keep slaves from running away or fighting back. Each state had different laws. But all of the laws had parts that were the same.
In the laws, the color line was very clear. If you had one African American person in your ancestry, you were black. It didn't matter how long ago that person had lived.
Whether or not you were a slave depended on what your mother was. If your mother was a slave, you were a slave. It didn't matter if your father was a free man. This made slavery permanent for any slave family. A child born to a slave was always a slave.