Republicans were angry that southern legislatures passed laws known as "black codes" because the Republicans had fought to eliminate slavery and give equal rights to the freed African Americans, and the black codes severely limited the rights of these newly-freed slaves.