Skip to content
Spain
🇪🇸Country profile·

Spain

What moves Spain’s 8,131 town halls: a State order, a State grant or a neighbour’s code?

Going online often books a place in a queue

Spain is a State of 17 autonomous communities, the regions, and 8,131 municipalities. Most of them are villages: 4,986 have fewer than 1,000 inhabitants and hold 3% of the population, while 39.9% of people live in municipalities of more than 100,000. In January 2026 the country had more residents than ever, and for the first time over 10 million of them had been born abroad.

The climate law of 2021, Ley 7/2021, requires emissions at least 23% below 1990 by 2030 and climate neutrality before 2050. In 2024 the government’s national energy and climate plan, the PNIEC, raised its own 2030 aim to 32% below 1990. The law also created a committee of independent experts to report to parliament every year. In 2026 the Real Instituto Elcano, a think tank on international affairs, noted that it was still to be set up.

By 2024 Spain’s emissions were only below 1990, against 38% across the EU. The figure hides a rise and a fall. Emissions climbed by 56% to a peak in 2007, then fell by 40% to 2024, while the population grew by more than a quarter. In 2025 they rose again, by 1.1%. Transport, the largest source at 34.2% of the total, grew by 2.4%. Power stations emitted 5.5% more as gas plants ran under the reinforced security regime adopted after the blackout of 28 April 2025.

Spain’s emissions since 1990, and the path its climate law sets
05010015020019902000201020202030204020501990 levelSpain94.1EU-2762.0Climate-lawpath0.0

index, 1990 = 100

Show the numbers
SpainEU-27Climate-law path
1990100.0100.0—
1991102.897.8—
1992105.994.7—
1993102.593.1—
1994108.392.6—
1995114.093.7—
1996111.495.6—
1997116.694.0—
1998120.193.2—
1999129.691.6—
2000135.091.4—
2001134.792.4—
2002141.292.1—
2003143.893.7—
2004149.493.7—
2005154.793.2—
2006152.693.3—
2007156.292.2—
2008144.590.2—
2009131.084.1—
2010125.785.7—
2011125.183.3—
2012122.381.8—
2013112.980.0—
2014112.877.1—
2015116.878.0—
2016112.978.0—
2017117.578.5—
2018115.676.7—
2019109.173.4—
202095.567.4—
2021101.470.9—
2022102.869.0—
202394.963.5—
202494.162.094.1
2025——91.3
2026——88.4
2027——85.6
2028——82.7
2029——79.9
2030——77.0
2031——73.2
2032——69.3
2033——65.5
2034——61.6
2035——57.8
2036——53.9
2037——50.1
2038——46.2
2039——42.4
2040——38.5
2041——34.7
2042——30.8
2043——26.9
2044——23.1
2045——19.3
2046——15.4
2047——11.5
2048——7.7
2049——3.9
2050——0.0

Greenhouse-gas emissions excluding land use and international aviation and shipping, indexed to 1990, for Spain and the EU-27. The third line runs straight from 2024 through the targets of Ley 7/2021: at least 23% below 1990 by 2030, and neutrality by 2050 (drawn as zero, before any removals). The 2024 national energy and climate plan aims further, at 32% below 1990 by 2030. One step on the axis is one year. Source: Eurostat, env_air_gge (greenhouse gases excluding land use and international transport)

The networks tell the opposite story. Fibre to the premises passes of homes, against 74.1% across the EU, and gigabit coverage of any kind is no higher, . In 2009 the telecoms regulator, since merged into the CNMC, made Telefónica, the former State telephone company, rent space in its ducts to rivals. By 2016 more than 200 operators had signed contracts. Telefónica closed its first copper exchange in 2015 and the last 661 of its 8,526 in May 2025.

Fibre also reaches the countryside: 86.3% of rural households in the Commission’s 2025 report, against an EU rural average of 58.8%. State subsidies fill the gaps, through a programme that aims to bring fibre to 6.3 million properties. 5G covers of populated areas.

Spain against the EU-27 average
  • Networks
  • Homes passed by fibre to the premises2025
  • Homes on a gigabit-capable network (fibre or upgraded cable)2025
  • Populated areas with 5G2025
  • People
  • Adults who dealt with a public authority online2025
  • Adults with at least basic digital skills2025

Spain is above the EU-27 average on every row shown, and furthest ahead on fibre to the premises. Coverage figures are for 2025, from the Commission’s Digital Decade report; use and skills figures are Eurostat surveys for 2025. Renewables and firms using AI, each within half a point of the EU average, are left out. Source: European Commission, Digital Decade (DESI 2026); Eurostat (isoc_ciegi_ac, isoc_sk_dskl_i21, isoc_eb_ai, nrg_ind_ren)

Spaniards also deal with the State online more than the EU average: of adults did so in 2025, against 57.7% across the EU. What they do there is distinctive. 62.0% of all adults booked an appointment with a public service online, against 38.1% across the EU, while filing a tax return online was level with the EU average. Booking online is the door to the cita previa, the appointment that many public offices require before they see anyone in person.

At the State’s own offices that door is often shut. In 2026 the consumer organisation OCU made six attempts over two weeks to book appointments at two State offices, Social Security and the employment service, in 26 provinces. More than half found no slot in the same city; in Granada, Tarragona, Valencia and Zaragoza none succeeded, and in Albacete, Bilbao and Oviedo the first slots were 28 to 32 days away. The OCU wants compulsory appointments abolished. Town halls use them too: in 2023 the Ombudsman asked Teror, a town on Gran Canaria, to let people in without one, and Teror refused.

Older people lag: 39.4% of 65–74-year-olds dealt with the authorities online in 2025. The Commission’s 2026 report on Spain asks it to make digital public services work together across the regions, to avoid regional imbalances.

Digitalisation processes must be compatible with face-to-face assistance.
Ángel Gabilondo, Defensor del Pueblo (Ombudsman), presenting his annual report for 2022, March 2023

A town hall can fine a car but needs permission for a police camera

The Constitution keeps telecoms, public security and the bases of energy for the State, and gives the regions planning and housing. The local-government law of 1985 sets municipal duties by size, and the provincial councils, the diputaciones, must run electronic administration for towns under 20,000.

The split makes one thing easy. Where a State law gives towns a duty, often with a condition on money, the same instrument appears in many places, as low-emission zones have. Where the lever stays with the State, cities depend on it: the fibre came from the regulator and the operators, and no local police force can put up a fixed camera without outside permission. Size is the other limit: most municipalities are villages, and they depend on their province for electronic administration.

Around the town halls sit a few national bodies. FEMP speaks for municipalities to the State and manages their new urban data space. RECI, the Spanish Network of Smart Cities, has more than 170 cities and provincial councils as members. Red.es, the State’s digital agency, and SEGITTUR, its company for tourism innovation, run the programmes cities apply to. Civio, a transparency foundation, the OCU and the Ombudsman press from outside, and the AEPD, the data-protection agency, has fined companies for facial recognition.

The State’s money reaches hundreds of places, slowly

Pedro Sánchez of the Socialist Party (PSOE) has led a minority coalition with Sumar, a left-wing alliance, since the July 2023 election, at which the conservative People’s Party (PP) won the most seats but no bloc had a majority. Junts, a Catalan pro-independence party, broke with the government in October 2025 and tabled amendments to all 25 of its bills. Spain has had no new State budget since 2023, and the government let the 1 October 2026 deadline for a 2027 budget pass. On 2 October Congress rejected the government’s housing decrees. On 5 October Sánchez dissolved parliament and called a general election for 29 November 2026.

One ministry, under Óscar López, holds both digital transformation and the civil service. Urban policy sits with the housing ministry. Red.es’s first five smart-city calls awarded more than €200m to 59 projects: 25 cities, 24 tourist destinations, seven building schemes and three island territories. In September 2026 a sixth, RedCyTI, added 52 projects with more than €94m from Red.es and EU regional funds.

Recovery money then funded calls for town halls: in 2021, €89.4m was awarded to 145 municipalities over 50,000; in 2022, €154.5m was awarded to 242 smaller ones, 53 provincial councils and other bodies. In February 2026 the Tribunal de Cuentas, the Court of Audit, reported on Red.es’s share of the recovery money. By the end of 2024 the agency had committed €4,046.7m and paid out €1,016.3m, a quarter.

Kit Digital, its grant scheme for small firms, alone had €2,220m awaiting payment, and the court found the agency had lacked sufficiently detailed planning in its first years. One recovery line shows how far plans and spending drifted: Red.es budgeted €140m for sectoral data spaces and used €13m of it, all for one direct grant to FEMP, made in October 2024, to build the municipalities’ urban data space. In May 2026 parliament’s audit committee asked the government to evaluate what the recovery funds had achieved.

We are not seeing in private investment the catalytic effect or the leverage effect that these funds should have had.
Cristina Herrero, President of AIReF, the Independent Authority for Fiscal Responsibility, on the recovery funds, May 2025

Spain’s recovery plan is worth €102bn, €79bn of it EU grants, and €22.2bn of it is for digital aims. With its sixth payment, in August 2026, Spain had received €78bn, about three-quarters of its plan. On 30 September it filed the seventh and final request, for €25.86bn, which the Commission has until the end of the year to pay. Seven Spanish cities, Barcelona, Madrid, Seville, Valencia, Valladolid, Vitoria-Gasteiz and Zaragoza, are in the EU mission for climate-neutral and smart cities by 2030, and all seven hold the mission label (since March 2024). Valencia hosts the EU consortium for local digital twins, CitiVERSE, set up in December 2024 with more than €80m from the Digital Europe programme to build reusable tools for cities; it has published no results yet.

The aim is to drive digitalisation that serves citizens, and not, as so often happens, one where citizens have to adjust to the technology.
Óscar López, Minister for Digital Transformation and the Civil Service, presenting the municipalities’ urban data space in Jaén, October 2024

The State is building some tools of its own. ALIA, a family of open language models trained by the Barcelona Supercomputing Center and publicly funded, covers Spanish, Catalan, Basque and Galician among 35 languages. SEPI, the State holding company, owns 10% of Telefónica and 28% of Indra, an IT and defence group.

The argument is about who checks the machines. The AEPD fined the supermarket chain Mercadona €2.5m in 2021 for facial recognition in its shops, and Aena, the airports operator, more than €10m in 2025. In September 2025 the Supreme Court ordered the government to give Civio the source code of BOSCO. The software decides who gets a discount on electricity bills, and Civio had asked for its code in 2018.

In December 2025 the government replaced the first director of AESIA, the new AI supervisory agency in A Coruña, which then planned to reach 55 staff. The national AI bill that would have given it powers to fine reached parliament in May 2026 and lapsed, still in committee, when parliament was dissolved in October. In 2023 Judith Membrives of Lafede.cat, a Catalan federation of civil-society groups, asked how the agency would observe AI’s social impact “without people from the humanities or social sciences” on its staff.

Spain’s digital State and its towns, 1985 → 2050
  1. Apr 1985[source]

    Local-government law

    Municipal competences are set by population; urban buses become a duty above 50,000.

  2. RECI founded

    Cities form the Spanish Network of Smart Cities.

  3. Jan 2015[source]

    First smart-city standard

    UNE 178301 sets out how cities should publish open data.

  4. Oct 2015[source]

    Reuse before you build

    Ley 40/2015 obliges administrations to look for reusable applications first.

  5. May 2021[source]

    Climate law

    Ley 7/2021 sets targets for 2030 and 2050 and orders low-emission zones.

  6. Apr 2022[source]

    Mission cities

    Seven Spanish cities join the EU mission for climate-neutral and smart cities.

  7. Aug 2023[source]

    Police face matching

    ABIS, the police facial-recognition system, goes live.

  8. Sep 2025[source]

    BOSCO ruling

    The Supreme Court opens a public algorithm’s source code to a civil-society request.

  9. Dec 2025[source]

    Sustainable Mobility Act

    Mobility plans for towns over 20,000, and data for the State’s mobility data space.

  10. Nov 2026[source]

    Snap general election

    Royal Decree 806/2026 dissolves the Cortes; Spain votes on 29 November and the new chambers meet on 23 December.

  11. Climate targets

    At least 23% below 1990 in law, 32% in the national plan.

  12. Neutrality

    The latest date the climate law allows for a climate-neutral Spain.

From the law that sets what a town must do to the targets the next governments inherit.

From Santander’s sensors to Benidorm’s certificate

SmartSantander was an EU-funded city-wide sensor testbed of 2010–2013. It cost €8.47m, €6m of it from the EU, was coordinated by Telefónica’s research arm and planned more than 20,000 sensors. The testbed’s own afterlife is not documented. A later municipal contract shows what can go wrong: in 2024 a city audit of a €850,000 underground-bin contract found no fill-level sensors installed, and the manager of the city’s SmartCity platform said it had received no data from them for years. Santander is now one of the 12 data offices of the municipalities’ urban data space.

Vitoria-Gasteiz and Valladolid were lighthouse cities in EU projects that ended around 2020. In Vitoria’s Coronación district, Visesa, the Basque public housing company, managed the works for private owners. There, 302 homes in 26 buildings were retrofitted with subsidies of 54–100%, with a 90% cut in CO₂ emissions, by the housing company’s figures. Valladolid’s REMOURBAN retrofitted more than 400 homes in the FASA district and, with the utility Iberdrola, installed 86 public charging points. No replication of either model has been reported.

Seville’s CartujaQanat, a €5m project 80% funded by the EU, built an underground water store, a sunken market square and planted pergolas between 2021 and 2022. It aims to cool the ground by 6–7 °C over an area the size of two football pitches; measured results have so far appeared only in secondary reports. The city has since put scaled-down versions into bus stops.

Benidorm became the first municipality certified as a Smart Tourist Destination, under the UNE 178501 standard, in January 2019. The model then spread through SEGITTUR’s network: more than 255 destinations have been assessed and more than 700 bodies belong to it. A 2026 analysis by the University of Alicante for SEGITTUR found average compliance with the model of 35.7%: 42.2% in urban destinations and 27.9% in rural ones, where specialised staff and money are short.

Low-emission zones show how a State duty travels. The 2021 law set 2023 as the deadline, and the State’s transport subsidy now requires a zone in operation during 2026. By September 2026 the motoring magazine Motor16 counted 68 active zones among the 149 towns over 50,000 that the law obliges. The ministry’s own map, which also counts islands and polluted smaller towns, showed 55 of 164 in force in January.

CONSUL, the open-source software behind Madrid’s participation portal, shows how code travels. Madrid’s participatory budget began in 2015 with €100m, was halved in 2020 by a conservative city government, and was in its eighth cycle in June 2026. The software is used by more than 250 cities and organisations worldwide, Tenerife and Málaga among them. Barcelona’s Decidim, a parallel platform, says hundreds of organisations around the world use it.

Residents see the State’s door differently from the OCU. In the IMD Smart City Index, a survey of how residents experience their city, Bilbao ranks 30th of 148, Madrid 37th, Zaragoza 63rd and Barcelona 94th. Asked whether processing identification documents online has cut their waiting times, residents of Bilbao, Madrid and Zaragoza agree more than those of almost any of 17 cities in Germany, France, Spain, the Netherlands and Belgium. Zaragoza is also one of the four cities where the OCU found no appointment at all.

Processing identification documents online has reduced waiting times
  • Bilbao
    65
  • Brussels
    64
  • Madrid
    64
  • Lyon
    63
  • Zaragoza
    63
  • Paris
    62
  • Bordeaux
    62
  • Lille
    62
  • Rotterdam
    61
  • Marseille
    60
  • Barcelona
    59
  • Amsterdam
    58
  • Munich
    55
  • The Hague
    54
  • Hamburg
    53
  • Berlin
    53
  • Hanover
    52

IMD’s score from 0 to 100 for how far residents agree with the statement, in 17 cities in Germany, France, Spain, the Netherlands and Belgium; Spanish cities in ink. The IMD Smart City Index surveys residents on how they experience their city; it measures perception, not performance. Source: IMD World Competitiveness Center, Smart City Index 2026 (resident survey)

The State order moved town halls once money was tied to it: fewer than half the towns obliged to run a low-emission zone had one by autumn 2026, three years after the legal deadline and after the transport subsidy began to require one. The State’s grants reached hundreds of town halls, but none has published what they changed. The EU’s showcase pilots in Santander, Vitoria and Valladolid stayed where they were built. What travelled furthest was code another administration had already paid for: Madrid’s CONSUL now runs in Tenerife, Málaga and cities abroad, under a law that tells every administration to look for such code before it builds its own.

References

Statistics1Click on any number to see the source

Population & migration

From our libraries8
Further sources20