For more than eight years, Pedro Sanchez defied political forecasts, survived parliamentary crises and repeatedly proved his critics wrong.
His political talents, including standing up to Donald Trump, earned him a reputation as one of Europe’s most resilient leaders.
But Sunday’s general election brought an abrupt and decisive end to his era, with voters handing the Partido Popular (PP) and Vox a comfortable parliamentary majority.
So what went wrong for the Socialists (PSOE)?
The shadow of corruption
Perhaps the most damaging development for Sanchez was the succession of corruption allegations involving figures close to his government and party.
The investigations surrounding former transport minister Jose Luis Abalos, his former adviser Koldo Garcia and former PSOE organisation secretary Santos Cerdan undermined Sanchez’s promise to restore integrity to Spanish politics.
It was particularly damaging given that Sanchez came to power in 2018 through a motion of no confidence against Mariano Rajoy following a major corruption scandal involving the PP.
The legal controversies surrounding his inner circle also provided ammunition for the opposition, regardless of their eventual judicial outcomes.
The price of staying in power

Elsewhere, Sanchez’s political survival increasingly depended on a fragile alliance of left-wing parties, Basque nationalists and Catalan separatists.
His decision to introduce an amnesty law for Catalan independence activists following the 2023 election became one of the most divisive measures of his premiership.
While supporters defended the legislation as a means of reconciliation, opponents viewed it as a concession made to secure another term in office.
The power-sharing arrangement left his government effectively hostage to the competing demands of its parliamentary allies, forcing it to negotiate support for individual pieces of legislation.
Most notably, Sanchez struggled to pass a new national budget, leaving Spain operating on extended budgets dating back to 2023.
Numerous legislative proposals were delayed, blocked or watered down, raising questions over the government’s ability to govern effectively.
The withdrawal of support from Junts further weakened Sanchez’s position, while the parliamentary impasse over housing legislation ultimately precipitated the snap election.
The irony was that the political agreements that had allowed Sanchez to cling to power in 2023 increasingly prevented him from exercising it.
A housing crisis that would not go away

Despite Spain’s relatively strong economic performance, many households have felt increasingly squeezed by the cost of living.
Soaring rents, rising property prices and the shortage of affordable housing have become defining issues for younger generations.
The government introduced rental restrictions and pledged to increase the supply of affordable homes, but its measures failed to bring sufficient relief to many of those struggling to find somewhere to live.
For a party that traditionally champions workers and lower-income households, the persistence of the housing crisis was particularly damaging.
Immigration and the rise of Vox

Meanwhile, immigration became an increasingly prominent issue during Sanchez’s final years in office.
Hard-right party Vox capitalised on concerns surrounding irregular migration, border security and pressure on public services, while the PP also adopted a tougher stance.
The crisis in Ceuta further intensified scrutiny of the government’s immigration policies.
While immigration was far from the only issue driving voters towards the right, it became an increasingly difficult subject for the PSOE to navigate.
A fragmented left
Sanchez also suffered from the fragmentation of the political left.
The divisions that followed the rise of Podemos, the creation of Sumar and the subsequent emergence of Frente Amplio weakened the electoral forces on which the PSOE depended to govern.
Even if Sanchez managed to mobilise much of his own traditional electorate, his prospects of remaining in La Moncloa were always dependent on the performance of his potential parliamentary allies.
Rail disasters and a crisis of confidence

The devastating rail disasters at Adamuz and Urda, which together claimed 115 lives, also cast a shadow over the government’s final year in office.
The tragedies prompted intense scrutiny of railway infrastructure, maintenance procedures and transport management, undermining confidence in a network long regarded as one of the country’s greatest modern achievements.
Transport minister Oscar Puente came under mounting political pressure, with the opposition demanding explanations and accountability.
The disasters compounded frustrations over recurring railway delays, cancellations and technical failures.
They also made it increasingly difficult for the government to present itself as a competent manager of public services.
Eight years of political fatigue
Not everything about Sanchez’s legacy is negative.
His governments oversaw significant increases in the minimum wage, labour market reforms, record employment figures and an economic recovery that outperformed several major European economies.
He also expanded social protections and pursued an ambitious renewable energy agenda.
But after years of political confrontation, corruption allegations, controversial parliamentary agreements and unresolved social problems, the government’s achievements struggled to dominate the public conversation.
The exceptionally high turnout in Sunday’s election suggests voters were determined to have their say on the country’s future.
Sanchez’s greatest political talent – his ability to survive – finally reached its limits.
