Spanish Prime Minister Pedro Sánchez announced Monday that he is stepping down as leader of the Spanish Socialist Workers’ Party (PSOE) and will leave Parliament following his party’s defeat in the November 29 national election.

Sánchez, who has served as prime minister since 2018, said he was resigning to allow the party to rebuild under new leadership. He also indicated that he would move away from the front lines of politics.

“Yesterday, unfortunately, the parties of the left weren’t able to win a majority, while another coalition was. That can’t be ignored,” Sánchez said in a statement at the party’s headquarters.

“This is a difficult, yet moving moment for me,” he added. “I will no longer be at the front, but I will be there to fight for every just cause, to fight for equality, because this is not just an end, it is also a new beginning.”

The election dealt a major blow to Spain’s left-wing political establishment, with the conservative Popular Party (PP) and the nationalist Vox party securing a combined 184 seats in the 350-member lower house of Parliament. That gives the two parties eight seats more than the 176 needed for an outright majority.

The PP, led by Alberto Núñez Feijóo, won 132 seats, while Vox secured 52. Sánchez’s Socialists finished with 116 seats, losing five, as parties further to the left suffered substantial losses. The Broad Front, a left-wing alliance, won just 10 seats, leaving the Socialist Party without enough parliamentary support to assemble another governing coalition.

The result could bring Vox into Spain’s national government for the first time since the end of Francisco Franco’s dictatorship in 1975. The PP and Vox have previously cooperated in several regional governments, but forming a national coalition would mark a significant development in Spanish politics.

Sánchez will remain caretaker prime minister while political leaders work to establish a new government and Parliament completes the process of replacing him. His departure from the Socialist Party leadership leaves the country's second-largest parliamentary party without a permanent leader.

A temporary committee is expected to oversee the party until after municipal and regional elections scheduled for May. The Socialists will then hold a party congress to select a new leader. Sánchez is also stepping down as a member of Parliament.

The election marks the end of a period in which Sánchez's government championed progressive policies on immigration, climate and energy, women's rights and social welfare. His administration also became one of Europe's most prominent voices criticizing Israel's military campaign in Gaza.

Sánchez had repeatedly positioned himself as a leading figure among Europe's left-wing leaders, particularly as conservative and nationalist parties gained ground elsewhere on the continent. His opposition to a NATO defense spending increase in 2025 also brought him into conflict with President Donald Trump, while earning praise from some European progressives.

However, his government faced mounting domestic criticism over the cost of housing, immigration policy, infrastructure management and corruption allegations involving individuals close to him. Sánchez apologized for confirmed corruption cases involving members of his political circle but maintained that he did not know about the misconduct.

His handling of immigration also became a major political issue after approximately 80,000 migrants crossed into the Spanish territory of Ceuta from neighboring Morocco during a mass border crossing this summer. The government faced criticism over its response to the crisis.

Two deadly train crashes also raised questions about the management and safety of Spain's high-speed rail network, which had long been considered a major achievement of the country's transportation system.

Sánchez had called the snap election in October in an attempt to capitalize on public frustration over housing costs and secure a renewed mandate for his government. His administration had proposed housing subsidies, disaster relief and other assistance for lower-income families, but the strategy failed to produce the left-wing majority he needed.

The prime minister had previously demonstrated an ability to survive political setbacks. In 2018, he came to power through a parliamentary no-confidence vote that removed conservative Prime Minister Mariano Rajoy. Sánchez also regained control of his own party after being forced out by internal opponents, later returning to its leadership.

In the 2023 election, the conservative opposition won more votes than Sánchez's party and its allies but failed to assemble a governing majority, allowing the Socialists to remain in power through coalition negotiations.

This time, however, the right-wing parties secured enough seats to form a majority, while the collapse of smaller left-wing parties made another Socialist-led government mathematically unworkable.

The defeat has also drawn international attention as conservative and nationalist parties continue gaining support across Europe. Sánchez's departure removes one of the continent's most prominent left-wing leaders, while negotiations between the PP and Vox will determine the composition and direction of Spain's next government