Prime Minister Pedro Sánchez's Socialist party has lost Sunday's general election, a result that could usher in a conservative government, potentially with far-right participation for the first time in decades.

The outcome marks a significant shift in Spain's political landscape, ending Sánchez's four-year tenure which was characterized by coalition governments and a highly polarized political environment.

Preliminary results indicate that the conservative People's Party (PP) is the largest single party, though short of an outright majority. The far-right Vox party is expected to be a key player in forming a potential coalition, a development that has raised concerns among progressive factions.

The election's implications extend beyond Spain's borders, as it could influence the direction of European Union policy and the continent's ongoing political realignment. The rise of populist and nationalist parties across Europe has been a notable trend, and Spain's potential shift could be seen as another indicator.

Sánchez called the snap election after his party suffered heavy losses in regional and local elections earlier in the year. He had aimed to rally support and secure a mandate to continue his progressive agenda, which included social reforms and a focus on climate action.

However, the results suggest that voters opted for a change, with the PP, led by Alberto Núñez Feijóo, performing strongly. The PP campaigned on a platform of economic stability and a return to more traditional governance, while Vox focused on issues such as immigration and national identity.

Political analysts are now closely watching the negotiation process. Forming a stable government may prove challenging, given the fragmented nature of the results and the ideological differences between potential coalition partners. The role of smaller parties, including Catalan and Basque nationalist groups, will likely be crucial in any coalition building.

This election outcome raises questions about the future of Spain's progressive policies and its relationship with the European Union. The potential inclusion of Vox in government could lead to significant policy shifts on social issues and foreign relations, mirroring trends seen in other European nations.