MADRID — Spain's snap election has positioned the far right within reach of national power, leaving undocumented migrants and long-term foreign residents fearful of sweeping policy reversals regarding residency and deportation.

Alberto Nunez Feijoo's conservative People's Party secured first place with 134 seats, falling short of the 176 required for an absolute majority. The far-right Vox party won 52 seats. The two parties can form a governing coalition, or Vox can support a People's Party minority government from outside Parliament. Political analysts expect Vox to secure cabinet positions, building on regional governing agreements already in place in at least four Spanish regions.

During the eight years of Socialist Prime Minister Pedro Sanchez's leadership, Spain's foreign-born population grew from 6.3 million to 10.4 million, according to the national statistics institute. Vox made reversing these immigration policies a central platform plank, frequently targeting Muslim migrants in its public messaging.

Vox leader Santiago Abascal reiterated his anti-immigration pledges during coalition negotiations. On election night, supporters gathered outside party headquarters chanting that Spain is Christian rather than Muslim.

For residents like Bah, a 38-year-old from Senegal who spent eight years building a life in Spain, the result brought immediate anxiety. His temporary residence permit renewal was refused in March. He currently relies on pending paperwork to work at a small nonprofit while challenging the decision.

"I couldn't sleep last night when I heard that the PP had won," Bah said. "I was almost crying."

Other naturalized citizens expressed concerns about rising social hostility and discrimination affecting their children. Meryem Haimer, 45, moved from Casablanca 18 years ago and gained Spanish citizenship in 2020. She worries about her 14-year-old and 16-year-old children facing xenophobic slurs in public spaces.

"Now they're still young, so I don't let them go out much or stay out late," Haimer said. "But they're going to grow up, they will go out, and it might happen."

Vox has pledged to deport undocumented individuals and ban mass regularizations of residency status, leaving communities from North Africa and West Africa uncertain about their legal standing as coalition talks proceed.