Pre-election polls have put the conservatives ahead of Prime Minister Pedro Sanchez’ Socialists, while the housing crisis, immigration and corruption scandals have dominated the campaign Spaniards are voting in a snap general election that could end Socialist Prime Minister Pedro Sanchez’s eight years in power and usher in a conservative government backed by the nationalists.Around 38.6 million people are eligible to elect all 350 members of the Congress of Deputies, the lower house of parliament, and 209 senators. Polling stations opened at 9 am local time on Sunday and will close at 8 pm (19:00 GMT).Sanchez was among the first to vote in Madrid. Conservative opposition leader Alberto Nunez Feijoo and nationalist Vox leader Santiago Abascal have also cast their ballots.The final polling average compiled by El Pais put Feijoo’s People’s Party (PP) at 31.5%, followed by Sanchez’s Socialists at 29% and Vox with 17.9%. Surveys suggested that the PP would need Vox’s backing to secure the 176 seats required for an absolute majority. A PP-Vox coalition could bring Spain’s hardline nationalist camp into government for the first time since dictator Francisco Franco’s death in 1975. Read more Spain heads to the polls: What’s at stake? Sanchez called the snap election in October after parliament rejected two measures to tackle Spain’s housing crisis, which has triggered mass protests and a general strike. The Socialists favor rent controls and expanded public housing, while the PP has pledged to facilitate the construction of one million homes. Both the PP and Vox want to repeal the existing housing law.Immigration has emerged as a major dividing line. Sanchez has offered undocumented migrants a path to legal residency, the PP has promised tighter border controls, and Vox is calling for mass deportations. Corruption scandals involving senior Socialist figures have further increased pressure on the government.Additionally, foreign policy has proved divisive. Sanchez has opposed NATO’s 5% defense spending target, restricted US operations against Iran from Spanish territory, and pledged to ban participation in “illegal wars.”The PP favors closer ties with Washington and higher military spending, which Vox also supports. The left-wing Frente Amplio party advocates defense cuts and the left-wing anti-austerity Podemos wants Spain out of NATO. READ MORE: Sanchez issues ‘illegal wars’ pledge in election run-in Both Sanchez and the PP back continued military aid to Kiev, while Podemos favors a negotiated settlement and a European security framework based on disarmament and cooperation.Sanchez is counting on high turnout to overcome the polling gap. Preliminary results are expected to start coming in on Sunday evening.