Spain just made a big, controversial bet. The left-wing government granted legal status to more than 500,000 undocumented immigrants in what amounts to the eurozone's fastest-growing economy's answer to chronic labor shortages. The move has triggered political chaos domestically and drawn sharp criticism from figures like Tesla Inc. (TSLA) CEO Elon Musk internationally.
The regularization decree, announced on January 27, allows foreign nationals who entered Spain before December 31 to apply for a one-year residence and work permit. The catch? They must have been living in the country for at least five consecutive months. The number of people potentially affected represents roughly 2% of Spain's current labor force.
Socialist Prime Minister Pedro Sánchez defended the decision in a February 4 opinion piece in The New York Times, framing it as both a moral imperative and economic necessity. "We did this for two reasons," he wrote. "The first and most important is a moral one. The second reason that made us commit to regularization is purely pragmatic. The West needs people."
That pragmatic argument isn't entirely wrong on the numbers. Spain faces serious labor shortages in agriculture, hospitality, logistics, and elder care. An aging population and low employment among older workers have created genuine threats to labor supply, growth, and public finances. But voters aren't buying it.
Political Backlash Hits Hard and Fast
The center-right Popular Party and the far-right Vox party immediately criticized the decision, which runs counter to the tougher immigration stances many European governments have adopted recently. Vox leadership said it would appeal to Spain's Supreme Court as soon as the decree was published, seeking precautionary measures to suspend its implementation.
The political fallout became concrete on Sunday when Sánchez's Socialist party sustained its second major loss in two months in a snap regional election in Aragon. According to reports, the Socialists dropped from 23 seats to 18 in the northeastern Spanish region of about 1.3 million people. Meanwhile, Vox doubled its seats to 14, taking third place and sustaining momentum from December's election in Extremadura.
The campaign in Aragon focused heavily on Sánchez's plan to legalize half a million immigrants to boost social security revenue by more than €1 billion annually. Apparently, that pitch didn't land with voters.
Italian Prime Minister Giorgia Meloni weighed in on Wednesday, highlighting her country's fight against mass migration. She said her government had implemented measures to strengthen the "fight against mass illegal migration" and human trafficking, drawing an implicit contrast with Spain's approach.
Musk Calls Sánchez a Tyrant and Traitor
Elon Musk, who has been a vocal critic of mass migration policies, didn't hold back. He called Sánchez a "tyrant and traitor to the people of Spain" on X and said that his true motivation was "electoral engineering."
European anti-immigration parties piled on as well. Tomasz Froelich, a German Member of the European Parliament representing Alternative for Germany (AfD), described the new policy as "a crime against Spain! That is a crime against Europe!" Jordan Bardella, leader of France's National Rally (RN), called on the EU to make the Schengen system exclusive to EU citizens after Spain moved to legalize more than half a million illegal migrants.
Alberto Núñez Feijóo, head of the Popular Party, the main right-wing opposition group, wrote on X that the "ludicrous" plan would "overwhelm our public services." He added that "in Socialist Spain, illegality is rewarded," vowing to change migration policy "from top to bottom" if he took power.
What Spanish Voters Actually Think About Immigration
The election results align with Spanish polling data showing that the majority of people in the country oppose current immigration levels.
Polling by Spain's 40dB Institute for El País and Cadena SER in October 2024 found that 75% of Spaniards now link immigration to negative outcomes, including insecurity, crime, and strained public services. That represents a 16% increase in concern over the past 18 months.
A February 2025 YouGov survey found that Spaniards have aligned with majorities across seven European Union countries who said immigration over the past decade was "too high." Specifically, 54% of Spaniards felt that immigration levels were too high, with only 15% saying they were about right.
Housing has become a major source of frustration. Residents and immigrants are competing for around 80,000 new homes when approximately 140,000 new households are created each year. That math doesn't work for anyone.
Spain's Economic Performance Tells a Different Story
Here's where things get interesting. While voters are angry, Sánchez's party has actually delivered stronger economic growth than Germany and France. Spain's GDP grew by 2.6% year-on-year in the fourth quarter, according to the National Statistics Institute (INE). That was the slowest rate in two years, but still impressive compared to European peers.
"For three years running, we have had the fastest-growing economy among Europe's largest countries," Sánchez wrote. "We have created nearly one in every three new jobs across the European Union."
Since the end of 2019, Spain's economy has grown 2.8 percentage points faster than the eurozone's, according to ING Think. Germany's GDP, the largest economy in Europe, grew just 0.4% year-on-year in Q4, the most in three years. France's GDP expanded by an annual 1.1% in Q4.
Spain's unemployment rate dropped below 10% in Q4 for the first time in nearly two decades. Migration has been a significant driver, boosting the country's labor force by 6.4% since 2019, compared to 3.6% in the eurozone.
The Migration-Growth Connection
An aging population and chronic labor shortages have created real challenges for Spain's economy. Migration has driven consumption and helped address these issues, at least temporarily.
"Much of Spain's recent growth has been quantitative, driven by substantial migration inflows that expanded the labor force," ING Think wrote on January 30. "The government's recent regularization plan…suggests a continuation of this strategy."
But there are warning signs. The country's industrial production dropped significantly in December, marking the first decline in 10 months. It contracted 0.3% year-on-year, led by a decline in durable consumer goods, according to National Statistics Institute figures. Despite 1.3% average growth projected for 2025, the downturn raises questions about sustained economic strength.
"This demographic tailwind masks weaker productivity dynamics," ING Think said. Spain must shift "from quantity-driven growth to a sustainable, productivity-led model," it noted.
How Sánchez Bypassed Parliament
Adding fuel to the political fire, Sánchez used a royal decree that doesn't require parliamentary ratification, despite the original citizen-led proposal having received overwhelming congressional support in April 2024. The decree revived a citizen-led initiative backed by more than 700,000 signatures and endorsed by 310 members of Congress.
"Parliamentary arithmetic has played an important role in this decision," Asbel Bohigues, a Political Science Professor at the University of Valencia, explained. "Since the 2023 elections, the combined votes of the PP, Vox, and Junts amount to a narrow right-wing majority, even though the government itself is led by the left."
In other words, Sánchez knew he couldn't get this through Parliament anymore, so he went around it. That hasn't helped his political standing.
Sánchez Takes On Social Media Platforms
As if the immigration fight wasn't enough, Sánchez has also taken an aggressive stance on social media regulation. Musk responded by labeling the Spanish leader as a "true fascist."
Sánchez has proposed criminal liability for tech executives, penalties for algorithmic amplification of illegal content, and a "Hate and Polarization Footprint" to expose platforms enabling it. The proposal grants Spanish authorities unprecedented power over foreign technology companies, holding executives criminally liable and allowing investigations of platforms like Grok, TikTok, and Instagram.
Spain also joined Australia in implementing the world's first under-16 social media ban in December 2025. Sánchez said Spain had joined five other European countries in a "Coalition of the Digitally Disposed" to advance coordinated regulation of social platforms.
Pavel Durov, Telegram's founder, expressed concerns about the vague definitions. "Vague definitions of 'hate' could label criticism of the government as divisive, leading to shutdowns or fines," he said. "This can be a tool for suppressing opposition."
What Comes Next
The recent snap elections in Aragón and Extremadura point to serious challenges ahead for Sánchez's Socialist party. He's betting that strong economic growth will eventually win voters over, but right now they're focused on housing costs, public services, and concerns about immigration levels.
Spain finds itself caught between economic necessity and political reality. The country needs workers to sustain growth and fund an aging population. But voters increasingly see immigration as a problem rather than a solution, and they're expressing that view at the ballot box. Whether Sánchez can navigate this tension may determine not just his political future, but Spain's economic trajectory as well.