After the Nat Turner Rebellion of 1831, South Carolina and other southern states passed legislation restricting the rights of free people of color and slaves. They enacted a law on April 1, 1835, which made teaching literacy to free people of color and slaves illegal and subject to fines and imprisonment. With the passage of this law, Payne had to close his school.