With 90% of votes counted, the conservative Popular Party and the far-right Vox party are closing in on a combined total well over the threshold of 176 seats needed to form a government.

The Popular Party, or PP, declared victory on X, saying, “The PP is going to win the elections and Alberto Nunez Feijoo is going to be prime minister of Spain”.

Spain ElectionSpain’s incumbent Prime Minister Pedro Sanchez votes (Francisco Seco/AP)

A large crowd of supporters gathered in front of its party headquarters in Madrid, waving both the party’s and Spain’s flag.

The victory would return the PP to power for the first time since 2018 along with junior partner Vox.

This would make the incoming administration the first to feature a far-right, nationalist party in power for the first time since dictator Francisco Franco’s death in 1975.

PP leader Mr Feijoo would become Spain’s next prime minister as long as PP and Vox can agree, as is widely expected, to form a coalition when the new parliament meets next month to vote in a government.

Popular Party candidate Alberto Nunez Feijoo casts his ballot in Spain’s general election Popular Party candidate Alberto Nunez Feijoo casts his ballot (Bernat Armangue/AP)

The election is seen as a referendum on Mr Sanchez.

The leader of the left-wing Socialist party has governed Spain for eight years through numerous crises, but also a period of economic growth that, for many voters, has been eclipsed by cost-of-living concerns.

No issue has galvanised Spaniards in recent years quite like access to affordable housing. Soaring home and rental costs in cities and tourism hot spots have caused widespread discontent, especially among the young.

Last month, Mr Sanchez announced an early election for November 29, after right-wing parties in parliament voted down measures that his left-wing government introduced to alleviate housing pressures.

Voters wait to cast their ballots at a polling station in Barcelona Voters wait to cast their ballots at a polling station in Barcelona (Emilio Morenatti/AP)

He has warned voters that a conservative government would not make their lives more affordable, and has frequently said his opponents would take Spain backward.

Mr Sanchez’s decision to hold the vote followed nationwide protests that sprang up around the country of 50 million after the dramatic eviction of an 87-year-old woman from her apartment in Madrid.

Mr Feijoo promised voters more stability and better governance, frequently pointing to to the many crises that took place under Mr Sanchez.

He has criticised Mr Sanchez not just for his government’s failure to improve Spaniards’ housing woes during eight years in office, but also for two fatal train crashes this year on Spain’s high-speed rail network, a nationwide blackout in April 2025 and a border crisis in Spain’s North African exclave.

People queue outside a polling station to cast their ballots in MadridPeople queue outside a polling station in Madrid (Francisco Seco/AP)

Mr Feijoo also pilloried Mr Sanchez — who relied on backing from far-left and separatist parties to cling to power in 2023 — for not being able to pass a budget in nearly four years, because of a lack of parliamentary support.

“I ask Spaniards not to vote with fear, but with memory,” Mr Feijoo said in Madrid after casting his ballot.

“Today is a day when the Spanish people take the helm and will decide the future, the destiny, and the direction of Spain.”

Spain in recent years has welcomed millions of people mainly from Latin America but also from Africa and elsewhere in Europe.

One in five residents was born outside Spain, according to census data. Earlier this year, the Spanish government legalised the status of nearly 1.2 million immigrants living in the country without authorisation.

Spain ElectionSantiago Abascal, Pedro Sanchez and Alberto Nunez Feijoo (Manu Fernandez/AP)

Both Mr Feijoo and Mr Abascal have portrayed Mr Sanchez’s immigration-friendly policies as harmful to ordinary Spaniards, often connecting the issue to the housing supply-and-demand imbalance and strained public services.

Both candidates have condemned the migrant legalisation measure.

The result will also be closely watched across Europe before an election-packed 2027, in which voters will head to the polls in France, Italy, Greece and Poland.

In France, the far-right National Rally is aiming to take power, while in Italy, Premier Giorgia Meloni’s right-wing coalition is expected to seek another term.