How were the voting rights of African Americans taken away?

Their right to vote was systematically taken away by white supremacist state governments.