MADRID — Rapid immigration helped turn Spain into one of Europe's biggest economic success stories in recent years, but tighter controls on migrant numbers under a future right-wing government could undermine that performance.

Immigrants accounted for around half of the growth of Spain's gross domestic product between 2022 and 2025, according to the Bank of Spain.

Opinion polls put the conservative People's Party (PP) ahead of Prime Minister Pedro Sanchez's Socialists before Spain's Nov. 29 election but show that it would likely need an alliance with the far-right, anti-immigrant Vox to govern.

The PP still supports some immigration to cover labor shortages under a selective system, but leader Alberto Nunez Feijoo has called for an end to what he called "uncontrolled immigration."