Alberto Núñez Feijóo’s conservative People’s Party (PP) won the most votes in Spain’s election, but its path to governing appears to depend on an agreement with Vox, the far-right party led by Santiago Abascal.

Speaking to supporters outside PP headquarters in Madrid, Feijóo said: “We are going to tear down the walls, we are going to open doors.” He promised to “try to govern for all Spaniards, regardless of who they voted for”. Some people in the crowd, however, chanted for outgoing prime minister Pedro Sánchez to be sent to prison.

Feijóo’s campaign language had not always been so measured. Now, with Vox needed for a parliamentary majority, he faces the task of reassuring voters that he can be the unifying force promised by his party’s campaign slogan: the change that Spain needs.

Provisional results show 9.2 million people voted for the PP, more than a million above its 8.16 million in 2023. The party won 32.5% of the vote, a slightly lower share than three years ago, and fewer seats. Its candidates led in 41 of Spain’s 52 provinces and cities, while the Socialists led in 10.

Vox also made gains, winning 4.5 million votes, almost 1.5 million more than last time, and 16% of the vote. It has more than 50 seats, up from 33 in 2023, making it the third force in Spanish politics, although it does not control any provinces.

The PP and Vox have had a rocky relationship, but Feijóo and Abascal currently have cordial ties despite their widely differing policies. Feijóo was quick to congratulate Abascal on Vox’s success. The two parties already govern together in Andalucía, Castile and León, Extremadura and Aragón, with mixed results.

In 2024, Vox left all four coalitions, as well as another in Murcia, during a dispute over providing homes for unaccompanied foreign minors. The parties resumed working together this year. Those regional coalitions have helped prepare the way for a possible PP-Vox government in Madrid.

“I don't think [Vox] will miss the chance of forming a government especially when they are already doing it in other regions,” said international policy strategist Jacobo Ramos Folch, a visiting professor at IE University and the University of Navarra.

Ramos Folch said Vox would want to advance policies including “national priority”, which seeks to give Spaniards access to public services ahead of foreigners. The position is likely to be too extreme for the PP, and some conservative leaders have already expressed misgivings about it.

Vox also supports “remigration” for foreigners it considers not to be contributing to the economy. Abascal wants the Spanish navy to defend national borders and “send a message to the world that there is no room here for all of Africa and all of the Americas”.

Climate policy could also prove difficult. Abascal has frequently denounced “climate terrorists” on the left, accusing them of dogmatically forcing farmers to follow environmentally friendly regulations that harm them economically. The PP is likely to be cautious about adopting that agenda because it will not want tensions with the EU, which sets many phytosanitary rules for countries.

Negotiations could also cover the allocation of ministerial posts. Vox has said it did not discuss the matter with the PP before the election, but it is now expected to come up. The PP will have to decide which portfolios it is prepared to hand to its potential hardline partner. Abascal and his colleagues are known to be keen on areas close to their agenda, including immigration, agriculture and family-related matters.

Camino Mortera-Martinez of the Centre for European Reform believes the PP will not want to give Vox more than a junior ministry. Another option, she said, is a “confidence and supply agreement”, under which Vox would support the conservatives in office in return for the promotion of some of its policies.

Sánchez had warned voters that a PP government with Vox would mean “rolling back the clock 40, 50 years”, an apparent reference to the far-right dictatorship of Francisco Franco, who died in 1975. The strategy failed, partly because Sánchez’s government had become unpopular and partly because most voters know of the Franco regime only from history books. Vox was particularly successful in attracting young voters during the campaign.

The left also suffered a setback: three million voters who backed the Sumar alliance in 2023 appear to have abandoned its replacement, Frente Amplio (Broad Front), in large numbers. Just 1.43 million supported the new group.

Feijóo has said his party would govern differently from the Socialists. “Whatever government comes out of this is going to be more stable than the government that Sánchez had over the past three years, which was a coalition of very unlikely bedfellows, and it also didn't pass a budget in three years, which I think is quite problematic,” Mortera-Martinez told the BBC.