SpainElection
Supporters attend the last campaign rally of the coalition Unidos Podemos (Together We Can) for Spain's upcoming general election in Madrid, June 24, 2016. REUTERS/Andrea Comas

The anti-austerity party Podemos is expected to make big gains in Spain's parliamentary election on Sunday, potentially delivering a fresh jolt to Europe's political mainstream after Britain voted to leave the European Union.

The last election in December broke the mould of 40 years of stable conservative or Socialist majorities and failed to produce a viable government as upstart parties channeled growing resentment of the establishment following an economic crisis and a raft of corruption scandals.

Opinion polls suggest that the parliament that emerges this time will be just as fragmented as the previous one, with four big parties and six smaller regional ones winning seats in the 350-strong assembly, and none of them coming close to a majority.

The center-right PP looks set to be the biggest party again, with around 120 seats, but its most natural potential coalition partner, the liberal Ciudadanos ("Citizens"), looks likely to win only about 40 seats, leaving them well short of the 176 needed for an absolute majority.

Yet the rise of Unidos Podemos ("Together We Can"), a far-left alliance led by Podemos, could in theory offer a way out. The 90 seats it is expected to win, combined with around 80 for the Socialist Party (PSOE), would come close to an overall majority. Support from some of the regional parties could then allow them to form a government.

Many analysts believe, however, that the 137-year-old Socialist Party would prefer to form a 'grand coalition' with the People's Party (PP) of the current acting prime minister, Mariano Rajoy, or give passive support to a minority PP government, rather than get into bed with a group that threatens their existence.

The situation has echoes of Greece, where a long-established center-left party, PASOK, joined a conservative-led government in 2012, only to find itself subsequently humiliated by the rise to power of the far-left Syriza party — which is close to Podemos.

After Britain's vote to quit the EU, Greece's Syriza prime minister, Alexis Tsipras, and Podemos leader Pablo Iglesias called for a relaunch of the European Union based on improved democracy, social protection and solidarity.

"It's bad news for the future of Europe. We are very worried about the decision of the British people. And we think we need to reconstruct another idea of Europe based on social rights and human rights," Iglesias told journalists on Friday as he closed his campaign.

It is not clear which impact the result of the British referendum will have on the Spanish election. Some analysts say Spaniards may opt for a "safe option" by backing the traditionally dominant PP and PSOE, while others say it is likely to translate into a boost for the insurgent Podemos.

There are also doubts about how many Spaniards will turn out to vote again, six months after an election that produced only political bickering, and with summer holidays starting.