A staunch opponent of Civil Rights legislation in the 1950s and 1960s, Thurmond conducted the longest speaking filibuster ever by a lone senator, at 24 hours and 18 minutes in length, in opposition to the Civil Rights Act of 1957. In the 1960s, he voted against the 1964 Civil Rights Act and the Voting Rights Act of 1965. Despite his support for racial segregation, Thurmond always denied the accusation that he was a racist by insisting that he was a supporter of states' rights and an opponent of excessive federal authority. Thurmond switched parties ahead of the 1964 United States presidential election, saying that the Democratic Party no longer represented people like him, and endorsed Republican nominee Barry Goldwater, who also opposed the Civil Rights Act.