Spanish Prime Minister Pedro Sánchez, who clashed repeatedly with President Donald Trump over defense spending, Iran and Gaza, is leaving politics after his Socialist Party lost Sunday's snap general election.
Sánchez told the PSOE's Federal Executive Committee on Monday that he was resigning as the party's secretary-general and as president of the Socialist International. He also said he would not take up the seat he won in Madrid.
"I am doing all of this out of consistency, responsibility towards the country and, of course, towards my party," Sánchez said at party headquarters in Madrid. He will remain prime minister in a caretaker capacity until a new government is formed.
An interim committee will run the PSOE until after Spain's regional and municipal elections in May 2027.
In his farewell remarks, Sánchez defended his record, saying he is handing over "a better Spain than the one we inherited in 2018."
Trump: "He deserves to lose"
Sánchez's exit caps a bruising stretch with Washington. He was the most prominent NATO leader to reject the alliance's 5% of GDP defense spending target backed by Trump, refused to support U.S. strikes on Iran and became one of Europe's harshest critics of Israel's war in Gaza. After the vote, Trump said Sánchez "did a terrible job" and "deserves to lose."

Path opens for a right-wing government
The PSOE won 116 of the 350 seats in the Congress of Deputies, five fewer than in 2023, while steeper losses by other left-wing parties ended any chance of renewing Sánchez's coalition. His departure clears the way for a coalition between Alberto Núñez Feijóo's People's Party, which came first, and the hard-right Vox.
The People's Party said there was "no other path" than Sánchez's resignation, calling it "the best news for Spain and for the PSOE." Sánchez had led Spain's government since June 2018.