Spain’s election matters because it could bring an end to Pedro Sanchez’s leftist leadership at a time when right-wing populist parties have gained traction in Europe.
The elections are also the first in a round of elections across the continent through next year, including in Poland and France.
Here’s what’s on voters’ minds ahead of the election.
Housing
There’s perhaps no other issue that has concerned Spaniards more than unaffordable housing.
Economic growth and an expanding labor market have driven a boom in demand for additional housing in metropolitan areas and tourist regions.
But new construction remains stuck near levels seen in previous decades and wages haven’t kept up.
Rental and home costs have soared, and voters said it’s their top concern for over a year, according to the state pollster CIS.
Sanchez aimed to capitalize on the frustration when he called early elections last month, hoping to frame the race around affordability issues.
Both Sanchez and his main opponent, conservative Popular Party leader Alberto Nunez Feijoo, have promised to enact measures to help first-time homebuyers if elected, and improve conditions for renters.
Immigration
Sanchez’s immigration-friendly policies have made the 54-year-old leader an outlier in Europe amid a rise in far-right populism and anti-immigration sentiment.
Spain has taken in millions of people from Latin America and Africa, and Sanchez has defended his government’s stance by citing the country’s economic boom having been spurred by those who have legally entered the workforce.
Feijoo and Santiago Abascal, the leader of the far-right Vox party that would likely join the PP in a coalition government, have advocated for tougher immigration policies.
Feijoo has promised stronger border management, while Abascal favors a much stricter approach, with Vox having advocated for mass deportations.
Corruption
Sanchez’s latest term has been overshadowed by numerous corruption investigations involving people in his inner circle and family.
Those legal cases have implicated a former minister and top officials as well as Sanchez’s brother and wife — who denies wrongdoing.
Sanchez has linked the cases against his family to a smear campaign but has apologized for proven corruption cases involving his former cohorts.
Voters list corruption and bad behavior by politicians as a concern, but they factor lower than affordability issues, working conditions and immigration, according to the CIS survey.
Train safety
Two fatal train accidents this year on Spain’s extensive high-speed rail network have put safety issues at the center of the election.
Sanchez, whose transport minister resigned after the second crash, has stressed to voters that the right-wing government would cut social spending, which is necessary to maintain public services and the rail network.
Feijoo has excoriated Sanchez’s record, vowing to “return quality to public services.”
Spain’s vast train network has been a source of pride for Spaniards, but accidents this year have raised greater questions about Spain’s aging infrastructure.
Climate
Spain is highly exposed to natural disasters that are affected by climate change, including ferocious forest fires, long-term drought, and sometimes deadly flash floods.
The country is also a leader in renewable energy, generating more than half its electricity from non-carbon sources, mainly from solar and wind.
Under Sanchez, Spain’s government has pledged to generate all its energy from renewable sources by 2050 and to shut down the country’s remaining nuclear reactors by 2035.
Feijoo said he would “realistically reformulate” Spain’s climate commitments, while keeping nuclear power in the mix with renewables, energy storage and sufficient backup capacity.
Vox, like other far-right parties, has pushed climate skepticism.
Read More: Spain goes to the polls as right-wing bloc eyes victory