A steady influx of immigrants helped turn Spain into Europe's miracle economy. Now, with economic angst rising, immigration is turning into a hot-button political issue in Spain -- and across Europe.

As Sunday's election approaches, Spain's Popular Party is challenging the generous immigration policies of the Socialist government, which over the past four years has welcomed a flood of immigrants from Africa, Latin America and Eastern Europe.

The...