Spanish Prime Minister Pedro Sanchez has stepped down as leader of the Socialist Workers' Party (PSOE) after his party lost a national election that returns the right to power in Spain, according to Al Jazeera.

Sanchez announced his decision on Monday, a day after the vote handed victory to the conservative People's Party (PP). The PP is expected to form a coalition government with the far-right Vox party.

Sanchez, who has led Spain for the past eight years, said he would not take up his seat in the Senate once a new government is in place. He will continue to serve as acting prime minister until that happens.

'Responsibility to the country'

Explaining his exit, Sanchez said he was acting out of consistency and a sense of duty to Spain and to the party. He said he hoped the century-old PSOE, which he noted had endured dictatorship, exile and heavier defeats in the past, could recover and make a fresh start.

"From now on, I'm just another party militant," he said in his farewell address, according to Al Jazeera.

On Sunday, Sanchez said he accepted the outcome without questioning its legitimacy, and telephoned PP leader Alberto Nunez Feijoo to congratulate him.

A troubled final stretch

Sanchez had weathered several bouts of political turbulence during his time in office, including a snap election in 2023. However, his government came under growing pressure over a worsening housing crisis and a series of corruption scandals.

It also failed to pass a budget for three years. Public frustration deepened further after a train crash last month killed at least 69 people.

Europe's far right celebrates

The result removes the last left-wing leader of a major European country, and right-wing figures across the continent were quick to welcome it.

French far-right leader Marine Le Pen, who is leading opinion polls ahead of France's presidential election next year, described the outcome as evidence of a patriotic wave across Europe. Alice Weidel, who heads the far-right Alternative for Germany, said on X that her party would bring similar change to Germany.

A lone voice on migration

In Brussels, Sanchez often stood apart from other European leaders on immigration, with Spain maintaining a welcoming approach to migrants while tougher policies became common elsewhere in the bloc.

Nic Lawley, special adviser to the director of the London-based think tank Chatham House, told the Reuters news agency that hardliners on immigration within the European Union would be pleased to see Sanchez leave, adding that his position had been bold enough that his departure would bring them some relief.

Stance on Gaza

Sanchez found more support within the EU for his criticism of Israel's war in Gaza. In 2024, Spain joined Ireland and Norway as among the first Western European countries to recognise Palestine as a state. France and Britain followed a year later.

His government also imposed a wide-ranging arms embargo on Israel, a step he said was intended to stop what he called genocide in Gaza and to support the Palestinian people.

What next

Sanchez will remain in charge in an acting capacity while the PP works to put together a government, expected to include Vox. The Socialist party now faces the task of choosing a new leader to guide it in opposition.

This story was prepared by the Hamasta Newsdesk with AI assistance, based on reporting by Al Jazeera. Read the original report. Photo: Al Jazeera.