The primary role of government in protecting political and civil rights is to make legislation that protects these rights--such as the right to vote, be free from segregation, etc--and also to ensure that these rights are actively enforced in all the states.