The reaction of free blacks to slave codes depended on what region they lived in. Free blacks in the South could do little to oppose them because they were restricted from travelling or assembling peacefully. In the North, free blacks opposed the slave codes by voting, writing, and buying slaves who were friends or family members.
Abolitionists started Antislavery organizations and societies. They also went about speaking against slavery. Some abolitionists, like John Brown took it to the extremes by raiding and attacking families that had slaves.
Slave codes ended with the Civil War but were replaced by other discriminatory laws known as "black codes" during Reconstruction. The black codes were attempts to control the newly freed African Americans by restricting them from engaging in certain occupations, performing jury duty, owning firearms, voting, and other pursuits. At first, the U.S. Congress opposed black codes by enacting legislation such as the Civil Rights Acts of 1866 and 1875 and the Thirteenth, Fourteenth, and Fifteenth Amendments to the U.S. Constitution