Spaniards are voting on Sunday in an election that looks likely to bring a coalition of conservatives and the country's rising far right to power. Socialist Prime Minister Pedro Sanchez says his party's internal polling still gives it a clear pathway to forming government.

Sanchez aims to pull off another spectacular comeback on Sunday in an election expected to deliver an unprecedented victory for conservatives and the far right. Sanchez called the early election to try to secure a majority after parliament rejected his October decrees intended to address a housing crisis. He has governed with fragile minority coalitions since 2018. While Sanchez is an icon of the international left, his polarising status at home has put his eight-year tenure at risk.

Polls consistently place Sanchez behind the main right-wing Popular Party (PP), which is predicted to win the most seats in another hung parliament. The PP's route to power could lie with the far-right, anti-immigration Vox, which is Spain's third-largest political force and could double its seats. A PP-Vox coalition would be the first since Spain's transition to democracy after General Francisco Franco's fascist dictatorship from 1939 to 1975.

Sanchez is banking on a late mobilisation of progressive and undecided voters to achieve at least 176 seats for leftist parties in the 350-member parliament. The 54-year-old says a PP-Vox coalition will cause a "regression" for social rights, notably for women, and will repeal efforts to rehabilitate Franco's victims. Sanchez has pointed to his record of overseeing one of the EU's fastest-growing economies, which he says is bolstered by a rise in the minimum wage and a labour reform that pushed unemployment to its lowest level in almost two decades.

Medical student Marta Ramirez Jimenez, 23, told AFP in Madrid that "politics is much more polarised" and denounced "intolerable opinions that are being given a voice." She added, "We're living at a time in which we risk suffering a rollback of rights that were taken for granted."

PP leader Alberto Nunez Feijoo, 65, dismissed what he calls Sanchez's campaign of "fear." Feijoo, who ran the northwestern region of Galicia for 13 years, has tried to project an image of experience and competence. The PP has attacked Sanchez over corruption scandals, concessions to Catalan separatists, and failing to pass a budget. The PP and Vox have also used two high-speed train collisions this year that killed 115 people and a July migrant rush into the city of Ceuta from Morocco as ammunition. A recent surge of migrant boats arriving in the Canary Islands has put Sanchez's defence of an open immigration policy under scrutiny.

Some Spaniards say they do not feel the effects of headline gains due to rising prices for housing, energy and consumer goods. Retiree Domingo Perez, 55, said "there needs to be a change, because of everything that's happened, so much corruption, the Spaniards who can't make ends meet."

Vox, led by 50-year-old Santiago Abascal, focuses its campaign on immigration, which it connects with the housing crisis. The party calls for the deportation of irregular migrants, foreigners who commit crimes, and those it deems are living off public benefits. Electrician Jesus Perez Oliden, 55, told AFP in Madrid: "Everything is so polarised right now: the left on one side, the right on the other – I'm not really sure."

Around 38.6 million Spaniards will begin voting from 9am, with polling stations set to close at 8pm.