▶️ LISTEN TO THIS ARTICLE
In 2024, Spanish AI startups raised over 300 million euros across dozens of deals, according to Dealroom and BBVA Spark's Spain Tech Ecosystem Report 2025. That's roughly eight times the amount raised the previous year. Microsoft opened a dedicated AI R&D hub in Barcelona. Sony AI set up a research office there. Apple announced it would base its AI and machine learning team headquarters in the city. Spain now ranks as Europe's fifth-largest market for AI investment since 2020, having attracted more than 2 billion euros in the vertical.
The numbers look good on paper. But Spain has a structural problem that money alone won't fix: over 120,000 IT positions sit unfilled, only 18.7% of Spanish graduates come from STEM fields (compared to 26% across the EU), and the country's first AI regulatory agency is still finding its footing. Spain is betting big on artificial intelligence. The question is whether it can build the workforce and institutions to back that bet.
Barcelona Didn't Get Lucky
Barcelona's ranking as the third city globally for attracting foreign AI investment projects, behind only London and Singapore, comes from IBM's Global Location Trends 2025 report produced with Moody's. That makes it the top city in the entire European Union for inbound AI investment. In 2024, the city's 160 tech hubs generated 2.879 billion euros in economic impact and over 34,800 jobs, a 22% increase from the prior year.
The corporate moves tell the story concretely. Microsoft chose Barcelona for one of its eight global WebXT research centers, focused on AI-driven web experiences. Sony AI opened a European research office there in June 2024, targeting scientific discovery and gastronomy applications. These aren't satellite sales offices. They're R&D centers staffed with engineers.
Catalonia's regional government has spent over a decade investing in digital infrastructure and university partnerships. The result: 24% of Catalan companies with more than nine employees invested in AI-related technologies in 2024. That adoption rate means Barcelona offers something most European cities can't: a local customer base, not just a talent pool. Companies building AI products can test and sell them without leaving the city.

The cost advantage matters too. Barcelona offers significantly lower operating costs than London or Paris, with a quality-of-life proposition that helps with recruitment. While France pours billions into Mistral and sovereign compute and the UK courts Nvidia with AI Growth Zones, Spain competes on livability and cost. When you're hiring machine learning engineers, that lifestyle differential is a retention tool.
The Strategy Behind the Spending
Spain's AI investment isn't random venture capital exuberance. It's backed by deliberate government policy. In May 2024, the Spanish government approved the Artificial Intelligence Strategy 2024, building on the original ENIA launched in 2020 under Pedro Sanchez with 600 million euros in initial public investment.
The updated 2024 strategy commits 1.5 billion euros in new funding for 2024-2025, on top of the 600 million already deployed. A centerpiece is the country's first AI factory, receiving nearly 62 million euros in government funding to create dedicated infrastructure for AI research and commercialization.
The broader digital context reinforces this: Spain's digital economy hit 26% of GDP in 2024, reaching 414 billion euros according to the Adigital/BCG annual report. That's up from 18.7% in 2019. The digital economy grew 17% year-on-year, nearly triple the 6.3% nominal GDP growth rate. Spain's startup sector overall now exceeds 110 billion euros in total value, having doubled since 2020, with 672 funding rounds completed in 2024 alone.
The European dimension adds further resources. The Digital Europe Programme has committed estimated investment in the range of 400-500 million euros to support Spain's AI push, and Spain is also building its regulatory apparatus to comply with the EU AI Act ahead of full applicability in August 2026.
The Talent Gap That Could Stall Everything

Here's where the optimism runs into a wall. Spain has over 120,000 unfilled IT positions as of late 2025, with acute shortages in AI, cybersecurity, data analytics, and cloud computing. The NLP and computer vision specialties most critical to AI show talent gaps of nearly 30%. Over 30% of Spanish companies report difficulty finding employees with the required technical skills.
The root cause is educational. Spain produces STEM graduates at a rate of 18.7%, well below the 26% EU average. Digital specialists make up just 3.2% of the Spanish workforce, trailing the EU's 3.9%. You can't build a world-class AI sector if universities aren't producing the engineers to staff it. Germany faces a strikingly similar shortfall, with over 109,000 unfilled IT positions despite billions in AI funding.
The government recognizes this. Spain's AESIA (Spanish Agency for the Supervision of Artificial Intelligence), operational since June 2024, is running a regulatory sandbox with twelve high-risk AI projects across healthcare, biometrics, employment, and critical infrastructure. A draft national AI Law was approved by the Council of Ministers in March 2025. AESIA published 16 detailed compliance guidelines in December 2025 to help companies prepare for EU AI Act obligations.
But regulation and talent development operate on different timescales. You can write compliance guidelines in months. Fixing a STEM pipeline takes a generation.
From Investment to Staying Power
Spain's 8x jump in AI investment is real, but it's concentrated in a relatively small number of deals. Maintaining momentum requires converting early-stage funding into scale-ups that can compete with American and Northern European companies. Historically, that's where European startups lose ground: they raise seed and Series A rounds, then get acquired before reaching the growth stage where real economic impact happens.
The structural ingredients are there. Barcelona provides a credible hub with real corporate R&D presence. Government spending is coordinated through a national strategy rather than scattered across ministries. EU integration gives Spanish AI companies access to a 450-million-person market. And the digital economy's 26% share of GDP means AI adoption has domestic demand to grow into.
The gap is human capital. Spain's AI ambitions outpace its talent supply by a wide margin, and no amount of government funding fixes that overnight. The workforce disruption playing out globally hits Spain particularly hard because it's racing to build an AI industry while simultaneously struggling to fill existing tech roles. The country is building the factory before it's trained the workers.
Sources
Research Papers:
- Progress in Implementing the EU Coordinated Plan on AI -- Spain -- OECD (2025)
- EU Coordinated Plan on AI -- Spain Country Note (PDF) -- OECD (2025)
- IT Talent Shortage Is Holding Back Companies in Spain -- BeFree Tech
- Global AI Talent Shortage Statistics -- Second Talent
Industry / Case Studies:
- Dealroom and BBVA Spark Spain Tech Ecosystem Report 2025 -- Invest in Spain
- Sony AI Opens European Research Office in Barcelona -- Sony AI
- Barcelona Ranks Third Worldwide for Attracting Foreign Investment in AI -- Catalonia Trade & Investment
- Barcelona Tech Hubs: Economic Impact and Jobs -- Barcelona International Welcome
- Microsoft Opens R&D Hub in Barcelona Focused on AI -- Catalonia Trade & Investment
- Artificial Intelligence Strategy 2024 -- Spanish Government (SEDIA)
- ENIA: Spain's National AI Strategy Launch -- La Moncloa (2020)
- Spain's First AI Factory Receives Nearly €62 Million -- La Moncloa (2024)
- Spain's Digital Economy Reaches 26% of GDP -- Invest in Spain
- Spain Startup Ecosystem 2025: Investment Record -- GoHub
- AESIA: Spanish Agency for the Supervision of Artificial Intelligence -- AESIA
Commentary:
- 24% of Catalan Companies Invested in AI in 2024 -- Invest in Spain / Dealroom
- AI Watch: Global Regulatory Tracker -- Spain -- White & Case
- Spain Issues Guidance Under the EU AI Act -- Inside Privacy / Covington
Related Swarm Signal Coverage: