Spain's conservative People's Party (PP), led by Alberto Núñez Feijóo, won the most seats in Sunday's general election, according to official results published by the Interior Ministry. The PP fell short of the 176 seats needed for an absolute majority in the 350-seat Congress of Deputies. Pedro Sánchez's Spanish Socialist Workers' Party (PSOE) finished second.

The result confirmed the trend shown in opinion polls throughout the campaign, which consistently placed Sánchez behind the PP. In his final pitch to voters, Sánchez framed the contest as a defence of "principles and values" against the right. He urged progressive voters to turn out and block a coalition between the PP and the far-right Vox.

Vox, led by Santiago Abascal, emerged as the likely arbiter of the next government. Its support, either through a formal coalition or abstention in an investiture vote, would allow Feijóo to become prime minister. Sumar and the regional nationalist parties that propped up Sánchez's minority government lacked the seats to sustain a fresh left-wing majority, according to the Interior Ministry count.

Feijóo told supporters at the PP's headquarters on Calle Génova in Madrid that Spaniards had voted for change and that he would seek to form a stable government quickly. Sánchez conceded that his party had not secured enough support to continue in office. He said the Socialists would act as a firm opposition.

King Felipe VI is expected to open consultations with party leaders once the new Cortes Generales convene, before nominating a candidate for an investiture vote. Negotiations between the PP and Vox over policy and cabinet posts are likely to dominate Spanish politics in the coming weeks. Their outcome will determine whether Spain joins the list of European governments that depend on the support of the hard right.