Twice slave rebellions broke out in Virginia: Gabriel's Rebellion in 1800, and Nat Turner's Rebellion in 1831. White reaction was swift and harsh, and militias killed many innocent free blacks and black slaves as well as those directly involved in the rebellions. After the second rebellion, the legislature passed laws restricting the rights of free people of color: they were excluded from bearing arms, serving in the militia, gaining education, and assembling in groups. As bearing arms and serving in the militia were considered obligations of free citizens, free blacks came under severe constraints after Nat Turner's rebellion.