MADRID, Nov 26 (Reuters) - Spain votes on Sunday in an early parliamentary election that could bring a right-wing coalition to power, replacing the Socialist-led minority government of Prime Minister Pedro Sanchez. Here is what to know about the vote.

Why is Spain voting now?

Sanchez called the election after parliament rejected his decrees on October 2, as anger grew over rising rents and evictions.

The decision was widely viewed as an effort to build on housing protests and limit political damage from a migration crisis in Spain's North African enclave of Ceuta, two deadly train crashes this year and corruption probes involving his inner circle. So far, his bid to mobilise the left appears to be falling short.

Who is ahead in the polls?

Practically all opinion polls indicate that a coalition of the conservative People's Party (PP) and far-right Vox is the only pairing likely to secure an absolute majority in the 350-seat lower house.

Pollsters put the PP at about 31% and Vox at roughly 18%, with the latter drawing support from younger and male voters. Sanchez's Socialist Party (PSOE), despite a recent modest rise to almost 30%, is generally expected to finish a close second. Parties further to the left, whose support would be important to a coalition, are polling at around 10% combined.

Who are the candidates?

Alberto Nunez Feijoo, 65, has led the PP since April 2022. A former president of Galicia, he earned a reputation there as a moderate and pragmatic administrator and has sought to present that image nationwide.

The PP was the largest party in the 2023 general election but did not win enough support to form a government, leaving Feijoo as opposition leader.

Sanchez is seeking another term for the PSOE, which he has led since 2017. After eight years in office, he is already Spain's second-longest-serving premier since the country's return to democracy in 1978. He has repeatedly surprised those who had written him off.

During his time in office, Spain's economy has outperformed those of other European countries. Sanchez has also kept the country in the international spotlight by opposing US President Donald Trump's pressure for increased military spending and denying him the use of Spanish airspace in the war on Iran.

Could the far right enter the cabinet?

A PP-Vox coalition could give a far-right party a cabinet role for the first time since dictator Francisco Franco's death in 1975. Vox leader Santiago Abascal built his political profile in the Basque Country by opposing separatism and co-founded the party in 2014.

Vox has grown from a minor force into Spain's third-largest party. It supports tougher immigration controls, the recentralisation of state powers, lower taxes and reversing many progressive social policies.

What is happening on the left?

Several parties to the PSOE's left have not agreed on a shared candidate list, weakening the chances of a left-wing coalition staying in power. Spain's electoral system disadvantages smaller parties that run separately. Polls show that some, including Podemos, former junior coalition partners of the PSOE, risk losing parliamentary representation.

The Broad Front, a platform made up of several parties in the minority government, is expected to win more than 5% of the vote.

Spain's historically distinct regions are represented by four separatist parties, most of them left-leaning: EH Bildu in the Basque Country, BNG in Galicia, and ERC and right-leaning Junts in Catalonia.

What are the main campaign issues?

A shortage of affordable housing has arguably been the campaign's hottest issue. Nationwide protests followed the eviction of an 87-year-old woman from her Madrid home. Sanchez supports rent caps and bans on short leases, while his main opponent favours deregulation.

Immigration has also been a defining issue. Sanchez is one of Europe's most vocal advocates of immigration's economic benefits; Vox wants much tighter controls.

Opposition parties have made corruption a central campaign theme after convictions involving members of Sanchez's inner circle and family, but have not tied Sanchez himself to the scandals. He has repeatedly denied wrongdoing.

How does the vote work?

Voters will elect all 350 members of the lower house on closed party lists, as well as 208 of the Senate's 266 seats. Only the lower house selects the prime minister; regional parliaments designate the remaining senators.

What happens after the vote?

The new lower house will meet on December 23 to elect a speaker. King Felipe will then nominate a candidate for prime minister, usually the leader of the party with the most votes.

The nominee needs at least 176 seats for an absolute majority in the investiture vote, or a simple majority in a second round. Coalition talks have no deadline, but a new government must be formed within two months of that vote to avoid another election.

(Emma Pinedo, Mireia Merino, Victoria Waldersee; Writing by Andrei Khalip; Editing by Alexandra Hudson)