Voting rights to African Americans?

Why was federal intervention necessary to extend voting rights to African Americans? Was Texas part of the reason for this? If so, what actions did they utilize?