The Right to Vote

How was the right to vote first established? How has it been expanded and protected?