Millions of Spaniards head to the polls Sunday in a national election centered on housing affordability that could allow the far right to join government for the first time since Spain ended its dictatorship more than 50 years ago.

The contest functions as a direct referendum on incumbent Prime Minister Pedro Sánchez of the Socialist party. Sánchez has led Spain for eight years through multiple crises alongside a stretch of economic growth that many voters now see eclipsed by rising living costs.

Current polling indicates a likely government led by the center-right Popular Party, with the far-right Vox party positioned for potential national influence depending on seat distributions.