MADRID — Spanish Prime Minister Pedro Sánchez has conceded defeat in Sunday's parliamentary election after the conservative People's Party (PP) and the far-right Vox secured a combined absolute majority, Spanish state news agency EFE reported.

Sánchez called PP leader Alberto Núñez Feijóo to congratulate him on his victory, EFE said. In a speech at the Socialist Party headquarters in Madrid, Sánchez called it "a sad night" for the country.

The PP garnered 134 seats in the 350-seat parliament, and the Socialists were second on 115 seats, with about 92 percent of votes counted. Vox had 53 seats, improving on its 2023 result of 33 seats.

The two parties together cleared the 176 seats needed for an absolute majority in the lower house, according to Spain's Interior Ministry, positioning Feijóo to become Spain's next prime minister and ending Sánchez's eight years in power.

Vox, led by Santiago Abascal, is set to enter national government for the first time since the end of dictator Francisco Franco's rule in 1975. Feijóo congratulated Abascal, the candidate who gained the most in percentage and seats, as the two parties prepared to negotiate a coalition. About two hours after the polls closed, the PP claimed victory in a post on X, saying Feijóo would be the next prime minister.

Voter turnout on Sunday was about 80 percent, the highest in more than four decades and the highest since Spain became a democracy nearly 50 years ago. More than 38 million people were eligible to vote.

The result ends eight years of Socialist rule and marks Spain's sharpest political shift in years, with the far right becoming kingmaker in Spanish politics.