Spaniards will vote in a general election Sunday, with Prime Minister Pedro Sánchez seeking to fend off conservative and far-right challengers and earn another term.

Sánchez’s main rival is conservative Alberto Núñez Feijóo. Far-right leader Santiago Abascal is vying to play kingmaker to Núñez Feijóo and usher in a right-wing coalition.

Pedro Sánchez of the Socialist Party has led Spain’s government since 2018, making him one of Europe’s longest-serving leaders. With a polished appearance and a command of English, he has become a darling of the global progressive movement. He has taken strong positions against US President Donald Trump and the US-Israeli war against Iran, as well as Israel’s military operations in Gaza. He has remained firm on pro-migration policies amid a wider anti-immigration mood in the developed world. He has overseen Europe’s fastest-growing major economy for several years, but greater wealth has not extinguished anger over rising housing costs.

Sánchez, 54, is a fierce campaigner who has outwitted adversaries inside and outside his party and repeatedly beaten the odds, earning a reputation as a political escape artist. In 2023 his Socialist Party took a beating in regional elections. The next day he called a general election and campaigned on fears of the far right entering government. The move worked, and voters let him stay in office after he formed another left-wing coalition.

The trained economist now arguably faces his greatest challenge. He is dogged by legal cases involving corruption by a former minister and top officials in his party, as well as his wife, who denies wrongdoing. His fate will most likely depend on his Socialists rallying and on smaller parties to the left outperforming polling that predicts they will lose votes.

Alberto Núñez Feijóo of the Popular Party is a lifelong civil servant turned politician who has avoided scandal and presents himself as a sensible, moderate and effective center-right administrator. Known nationally by his second last name, Feijóo won election after election in Galicia during the 13 years he governed Spain’s rural northwest. Despite being less developed, Galicia has a long tradition of producing strong politicians, among them 20th-century dictator Francisco Franco and former Prime Minister Mariano Rajoy, who ran Spain from 2011 until 2018, the last time the Popular Party led the country.

Feijóo, 65, wants to reduce government regulations and lower taxes and, like Sánchez, is staunchly pro-European Union. If he wins, he is expected to mend bridges with the United States and Israel. He took over his party in time to lead it at the previous general election, when he failed to oust Sánchez. Pressure is now on him to convert the broad support the Popular Party has maintained since then. The low-key Feijóo may be overshadowed by his rivals, but he leads a vote-winning machine entrenched in Madrid and in many rural provinces.

Santiago Abascal, bearded and barrel-chested in tailored suits, is a member of the global populist right whose candidacy could give Feijóo a coalition with which to govern. Abascal, 50, is from the Basque Country. Like many Spanish politicians across the spectrum, his ultranationalist ideology was shaped in response to violence by the region’s separatist group ETA, which disbanded in 2018.

Abascal began as a rank-and-file member of the Popular Party before he and others splintered off to found Vox in late 2013. He quickly became its leader and has kept firm control. He is a staunch defender of Israel and has strongly criticized Spain’s position toward the country under Sánchez. He wants to slash business regulations and cut taxes, and he openly admires Argentina’s President Javier Milei. Like Milei, he attacks progressive causes, including feminist thought, and dismisses climate change. Vox is not openly hostile to the EU, unlike other far-right European parties, but Abascal blames immigration for Spain’s cost-of-living pains.

Far-right parties such as Vox have been kept out of government in Spain since democracy returned after Franco’s death in 1975. After losing seats in the 2023 election, Vox is aiming for a rebound that would let it demand ministries as a junior partner in a government Abascal hopes Feijóo will lead.

Right-wing voters who find Vox too mild can choose Se Acabó la Fiesta (The Party Is Over), the political vehicle of a far-right social-media influencer. On the left, infighting stopped smaller progressive parties from rebuilding the electoral coalition that helped the left stay in power in 2023. This time Frente Amplio (Broad Front) will compete with Podemos (We Can) for the most left-leaning voters, hurting both parties and Sánchez’s chance of forming another left-wing coalition.

Traditional regionalist parties that focus on how policies and laws affect their home territories in Catalonia, the Basque Country, Galicia and the Canary Islands could also help form a ruling coalition if the result is close.