Pedro Sanchez's Socialists lost Spain's election on Sunday to the People's Party (PP), which is expected to form a coalition with Vox. The result removes from power the last centre-left leader of a major euro-zone economy, a champion of progressive European Union policies who clashed with Donald Trump and was among Europe's most vocal critics of Israel's war in Gaza.

The PP and Vox have pledged sharply different approaches on many issues Sanchez championed, from migration to housing. Sanchez, a fluent English speaker who worked in Brussels early in his career, was one of Spain's most internationally prominent leaders. He pushed a more liberal approach to immigration, recognition of a Palestinian state and action on climate change.

He angered Trump by refusing to let US military aircraft use Spanish bases for the war in Iran and through Spain's opt-out of NATO spending targets. Carla Hobbs, head of the Madrid office of the European Council on Foreign Relations, said Spanish foreign policy used to be "very much a case of following the crowd and not sticking your neck out, but in the last few years it's been a total turnaround". She said Spain suddenly had an international profile and was "the frontrunner on issues", and that his likely successor, Alberto Nunez Feijoo, was expected to be more insular.

Sanchez had become increasingly isolated in the EU, where hardline stances on migration and calls for a slower pace of climate transition are gaining traction. At home he promoted immigration as beneficial for Spain's economy and essential for maintaining its welfare system. He was a lone voice in Europe, where even Denmark, led by Social Democrat Mette Frederiksen, has pushed for policies that allow illegal immigrants to be sent to third countries.

With no requirement for unanimity in European Council votes, Sanchez was unable to block migration policy he opposed. An EU diplomat nevertheless called him "the guardian of checks and balances" and said his exit would allow advocates of a harder line to "move more freely" on migration proposals. Another diplomat said the amnesty policy he promoted at home was seen as a pull factor that attracted more immigrants to Europe.

Nic Lawley, special adviser to the director of London-based Chatham House, said many anti-immigration advocates in Brussels will be happy to see the back of him. "It's such a bold stance that I think it will cause some relief," Lawley said. He said Sanchez's efforts to push for a two-state solution in the Israeli-Palestinian conflict had more success. Sanchez, who described Israel's offensive in Gaza as genocide, led a small group of pro-Palestine countries pushing for more sanctions against Israel.

Spain, along with Norway and Ireland, was in 2024 one of the first in Western Europe to recognise Palestinian statehood, a move they said they hoped would spur other European countries to follow and push for a two-state solution. France and Britain followed a year later. A Belgian diplomat told Reuters that with a pro-Israel coalition set to take power, momentum for more pressure on Israel might slow. The diplomat said Spain is the largest country in that group and that, as the group becomes smaller, it has less leverage at EU level.

Sanchez also angered Trump through criticism of US tech firms. He described their owners as "tech oligarchs" and held them personally responsible for what he said were lies spread about Spain on their platforms. Hobbs said a right-wing government would seek to repair the relationship that deteriorated under Sanchez and Trump.

Sanchez was one of Europe's most vocal promoters of the European Green Deal, which aims to make the EU carbon neutral by 2050. He lobbied for the appointment of his former environment minister, Teresa Ribera, as executive vice-president of the European Commission with responsibilities over a clean transition. Feijoo has advocated a slower pace that does not harm business. One diplomat said, "Sanchez is someone who could make a difference. He has been a backbone of this. Losing him would have a negative impact on the Green Deal," and added that the Green Deal was expected to be watered down now Sanchez had left.

With Sanchez gone, only three centre-left EU heads of government remain: Denmark's Frederiksen, Lithuania's Mindaugas Sinkevicius and Malta's Robert Abela. Who would take Sanchez's place leading the centre-left is unclear. Frederiksen has the highest profile but has drawn criticism from Social Democrats elsewhere in the EU for her stance on migration and plans to send rejected asylum seekers to a deportation hub in Rwanda.

Sanchez has not said what he plans to do next. Lorenzo Bernaldo de Quiros, head of Freemarket Corporate Intelligence, said he could seek a job in an international institution or remain leader of the opposition with a party that is down but not out and wait for a chance to return, even if that blocks new leaders from emerging. "The Socialist Party, unlike other European socialist parties, is set to be one of the few to survive with any real strength. Sanchez is both a driving force behind the PSOE's survival and an obstacle to its renewal," Bernaldo de Quiros said.