Spaniards are voting in a snap general election today. Socialist Prime Minister Pedro Sánchez called the vote eight months early after members of parliament rejected planned changes to housing laws.

Sánchez and his PSOE party face strong competition from the conservative People's Party (PP). Opinion polls suggest Sánchez is trailing narrowly behind rival Alberto Núñez Feijóo. However, Sánchez told supporters on Friday that he is confident victory is possible.

The PP may need the support of the far-right Vox party to secure a majority. The parties have already shared power in four Spanish regions. Vox, led by Santiago Abascal, backs policies such as "national priority" - putting Spanish citizens first for welfare - and "remigration" for foreigners not considered to be contributing to the economy. Critics describe the party's ideology as reminiscent of aspects of the era of dictator Francisco Franco, but Vox rejects this.

The lack of affordable housing is the dominant theme of the campaign. Other major issues include the cost of living and immigration. Sánchez has been in power since 2018. He has gained a high profile internationally for his opposition of Israel's action in Gaza and his criticism of US President Donald Trump. At home, corruption scandals and two deadly railway crashes have damaged him.

If the PSOE wins the most seats, Sánchez would likely struggle to form a coalition of the left. If the PP forms a government, it would be with the support of Vox. Vox's presence in national government could be consequential for Spain and reshape the balance of power in Europe.

Millions of Spaniards can cast their vote until 20:00 (19:00 GMT) on Sunday. Provisional results are expected around an hour after polls close. Official results will come in through the night into Monday. Campaigning ended on Friday before a traditional day of reflection on Saturday.