MADRID — Conservative and far-right parties defeated Spain’s long-standing Prime Minister Pedro Sánchez in Sunday’s elections whose results reflect a wider European demand for tighter immigration restrictions. With virtually all of the votes counted after a near-record turnout, the conservative Popular Party, or PP, and the far-right Vox party secured a combined total well over the threshold of 176 seats needed to form a government. The victory for Spain’s rightwing parties marks the end to a nearly decade-long era of Spain leading a series of progressive causes under Sánchez, including women’s rights, green energy, its unabashed criticism of Israel’s treatment of Palestinians and a pro-immigration stance while Europe closed its borders. PP leader Alberto Núñez Feijóo will become Spain’s next prime minister as long as PP and Vox can agree, as is widely expected, to form a coalition when the new parliament meets next month to vote a new government into power. “With a great victory comes a great responsibility,” Feijóo told a crowd of supporters gathered in front of party headquarters in Madrid. “We are going to try to govern for everyone, for all Spaniards, no matter who they voted for.” Feijóo took a moment to thank his new would-be partner in government, Vox leader Santiago Abascal. “I want to thank in a very special manner the candidate who saw the biggest rise in the number of seats, Santiago Abascal,” Feijóo said. Popular Party returns to power after 8 years The PP will return to power for the first time since 2018. Junior partner Vox would make the incoming administration the first to feature a far-right, nationalist party in power for the first time since dictator Francisco Franco’s death in 1975. “Mission complete!” Abascal shouted to a thrilled crowd of supporters, who shouted insults at Sánchez. “We have kicked them all out!” Sánchez conceded electoral defeat in a short speech to party members. “Today is a sad day for our country,” Sánchez said. “We haven’t achieved our goal of being able to keep together a progressive government,” he said at the Socialists’ headquarters, as they prepare to move into opposition. He will remain in charge of the interim government until the incoming one takes office. Trump welcomes Sánchez’s defeat U.S. President Donald Trump on Sunday welcomed the defeat, saying it was “great news” that Sánchez was on track to be unseated. “That’s a good thing,” Trump told reporters in Washington. “He did a terrible job. He deserves to lose.” Sanchez has been one of Trump’s loudest critics in Europe and the two have frequently clashed over topics including the Iran war, Venezuela and NATO spending. “This result signifies a strengthening of the axis between the traditional right and the far right on a European scale - most notably within European institutions,” said Steven Forti, professor of political science at the Autonomous University of Barcelona. The result is also being closely watched across Europe before an election-packed 2027, in which voters will head to the polls in France, Italy, Greece and Poland. In France, the far-right National Rally is aiming to take power, while in Italy, Premier Giorgia Meloni’s right-wing coalition is expected to seek another term. Late Sunday, Meloni congratulated the PP and Vox for their victory, writing on X that she looked forward to working with them “for the benefit of our nations.” Housing bet didn’t work The election was seen as a referendum on Sánchez, a politician who had a reputation for pulling off political comebacks that was strengthened after he defied the polling odds in 2023. The left-wing leader of the Socialist party has governed Spain for eight years through numerous crises, but also a period of economic growth that, for many voters, has been eclipsed by cost-of-living concerns. Sánchez announced an early election in October hoping to leverage widespread protest over soaring home and rental costs after the dramatic eviction of an 87-year-old woman from her apartment in Madrid. It didn’t work. The PP and Vox rode a massive wave of voter participation, with 79.52 per cent turnout virtually equaling the record for modern elections in Spain set in 1982 at 79.97 per cent. Oriol Bartomeus, a professor of political science at the Autonomous University of Barcelona, said that the PP and Vox clearly won by getting people who had not voted in the previous elections to cast ballots. “There was a brutal jump in participation, but in the pre-election polls you could see that among the people who didn’t turned out in 2023 but were going to vote, the PP beat the Socialists 3-to-1,” Bartomeus said. “And the far right had an incredible capacity to get people to vote who had not voted in a long time.” With 99.8 per cent of votes tallied, the PP won the most seats with 132. But Vox was the biggest gainer in power, rising from 33 three years ago to 52. That increased its position as the third-largest party in the chamber. “I think this makes a lot of people hopeful again for the future of Spain,” said 18-year-old Rafa Castilla, who turned out to celebrate at the PP headquarters. “This was necessary for us to have an absolute majority. I think the PP is going to govern for the majority but Vox can do a good job providing it with new ideas.” The Socialists got 116 seats. But Sánchez’s chances of keeping together a coalition government were sunk by the collapse of his until now junior partner in government. Immigration and other national crises proved key Feijóo promised voters more stability and better governance, frequently pointing to the many crises that took place under Sánchez and the corruption cases dogging the Socialist party. Feijóo criticized Sánchez for two fatal train crashes this year on Spain’s high-speed rail network, a nationwide blackout in April 2025 and a border crisis in Spain’s North African exclave of Ceuta. Spain has welcomed millions of people, mainly from Latin America, but also from Africa and elsewhere in Europe. One in five residents was born outside Spain, according to census data. Earlier this year, the Spanish government legalized the status of nearly 1.2 million immigrants living in the country without authorization. Feijóo and Abascal have portrayed Sánchez’s immigration-friendly policies as harmful to ordinary Spaniards, pointing to the country’s insufficient housing stock and strained public services. Both candidates have condemned the migrant legalization measure. Vox campaigned heavily on pledges to expel migrants in the style of Trump and give Spanish citizens priority over foreigners for welfare benefits. The PP has adopted some of Vox’s anti-immigration rhetoric, referring to the tens of thousands of people, mostly Moroccans, who crossed into the Spanish exclave of Ceuta in July as “invaders.” Feijóo will bring Spain closer to U.S. and Israel Sánchez, a Madrid native and former economics professor, became a hero to the global left for his government’s opposition to the Israel-Hamas war in Gaza. He has criticized the U.S. and Israel over the Iran war, and was one of Western Europe’s first major leaders to formally recognize Palestinian statehood. Feijóo, in contrast, is a lifelong civil servant-turned-politician from rural northwestern Galicia who doesn’t speak English and projects himself as a sensible, moderate and effective administrator. He is expected to mend bridges with the United States and Israel. Israeli Foreign Minister Gideon Saar congratulated Feijóo and Abascal on their victory, writing Sunday night on X: “I believe that we can now work together to restore Israel-Spain relations.” By Suman Naishadham And Joseph Wilson Wilson reported from Barcelona, Spain.