Spain - National AI Sandbox (Royal Decree 817/2023)
National AI Sandbox
National AI Sandbox (first Spanish EU AI sandbox / Entorno de pruebas de Inteligencia Artificial)
Spain
RAI-ES-NA-NASFSXX-2025Spain - National AI Sandbox (Royal Decree 817/2023) is In Force in Spain as of 9 Sep 2026, according to digital.gob.es.
DecreeGovernance and OversightSafety, Testing, and EvaluationConformity Assessment and RegistrationRoyal Decree 817/2023 establishes a controlled regulatory sandbox for AI developers and deployers in Spain to test high-risk systems under EU AI Act rules. The decree took effect on 10 November 2023 and is currently In Force. The framework is supervised by SEDIA and AESIA to guide entities through compliance testing.
Summary
The National AI Sandbox (Entorno controlado de pruebas para una inteligencia artificial confiable) is currently In Force in Spain. Established by Royal Decree 817/2023, which was published in the Official State Gazette on 9 November 2023 and entered into force on 10 November 2023, its most recent major operational milestone was the provisional resolution published on 3 April 2025 selecting 12 high-risk AI systems to enter active testing in the sandbox's initial cohort following the public call issued on 20 December 2024.
The instrument creates a controlled, supervised framework enabling AI system developers and deployers to evaluate compliance with the European Union Artificial Intelligence Act (Regulation (EU) 2024/1689) prior to full market deployment. The sandbox focuses on operationalising key compliance dimensions including risk management, data governance, technical robustness, cybersecurity, transparency, and human oversight. Participation is directed particularly toward small and medium enterprises and startups, requiring participating entities to be established in Spain or designate a Spanish representative.
Supervision and governance of the sandbox are administered by the Secretaría de Estado de Digitalización e Inteligencia Artificial (SEDIA), working alongside the Agencia Española de Supervisión de la Inteligencia Artificial (AESIA) and in coordination with sectoral regulators such as the Spanish Data Protection Agency (AEPD). In executing its oversight mandate, SEDIA is authorized to evaluate applicant technical documentation, inspect risk management systems and data governance protocols, require remedial technical measures, restrict testing activities, and suspend or terminate sandbox participation for non-compliance with established sandbox rules.
The testing phase generates empirical data and practical insights intended to formulate technical guides, self-assessment tools, and good practice reports. These outputs are designed to assist Spanish entities in fulfilling EU AI Act requirements and are shared with the European Commission, the European AI Office, and standardisation bodies to contribute to harmonised standards across the European single market.
Full article
Read full text ↗Overview
The National AI Sandbox (Entorno controlado de pruebas para una inteligencia artificial confiable) is established by Real Decreto 817/2023 and operationalised by the Secretaría de Estado de Digitalización e Inteligencia Artificial within the Ministerio de Asuntos Económicos y Transformación Digital. Its purpose is to provide a regulated, supervised environment to test compliance with the EU Artificial Intelligence Act (Regulation (EU) 2024/1689), to generate evidence-based technical guidance and to support SMEs and startups in meeting high-risk AI obligations. The first public call and selection process (publication of the call materials on SE Digitalization portal) resulted in the provisional selection of 12 high-risk AI systems announced on 3 April 2025. The sandbox is designed to combine regulatory oversight with operational testing, capacity building and cooperation with the European AI Office.
Definitions
Key definitions are aligned with the EU AI Act and the Royal Decree: "provider" (entity that develops an AI system and places it under its own name), "user" (entity that deploys or operates a system), "high-risk AI system" (systems that, by sector or intended use, present significant risk to health, safety or fundamental rights), "system of general purpose" and "foundational model" (large-scale models that may be adapted to high-risk uses), and "sandbox" (a time-limited, supervised environment for testing and validating compliance and mitigation measures). The Decree clarifies that participating entities must be resident in Spain or have a permanent establishment in Spain, or designate a Spanish representative for the purposes of the sandbox.
Governance and Institutional Framework
Governance is led by the Ministerio de Asuntos Económicos y Transformación Digital through the Secretaría de Estado de Digitalización e Inteligencia Artificial and is executed via formal calls, selection committees and an expert advisory group (documented on the sandbox portal: press release and Enlaces y Descargas page). The governance model includes: a) a public selection and admission procedure; b) multi-disciplinary expert reviewers; c) continuous monitoring and reporting channels; and d) cooperation mechanisms with the European AI Office and sectoral regulators (health, transport, labour, telecommunications). Data protection oversight is coordinated with the Agencia Española de Protección de Datos (AEPD) where personal data processing is involved. The Decree tasks the administering authority with producing final guidance reports and sharing outcomes with the European Commission and standardisation bodies.
Key Focus Areas
The sandbox concentrates on operationalising several compliance dimensions: technical robustness and cybersecurity (adversarial testing, red-teaming, patching), human oversight and organizational governance (roles, escalation and supervision), transparency and information obligations (documentation, instructions for use, consumer notices), data governance and privacy (quality, provenance, lawful basis and minimisation), conformity assessment pathways (interface with notified bodies and market surveillance), sectoral safety standards (healthcare, critical infrastructure, machinery), post-market monitoring (incident detection, corrective actions), and liability & redress mechanisms. Selected cases include biometric age verification, healthcare diagnostic tools, employment screening systems and critical infrastructure monitoring; the mix is intended to stress-test different high-risk categories and model types including foundational models adapted to high-risk uses.
Implementation Framework
Implementation follows a structured multi-stage approach: application & selection (eligibility checks, documentation review), admission & on-boarding (execution of participation agreements, confidentiality and data-sharing arrangements), testing & validation (controlled deployment, test datasets, monitoring dashboards), technical feed-back (iterative adjustments, expert advisory reviews), reporting & evaluation (delivery of self-assessments, independent validation outputs), and final guidance production (consolidated lessons, draft technical guides). Operational rules require participants to supply technical documentation, risk assessments, human oversight mechanisms and post-market monitoring plans — and to allow supervised testing within sandbox facilities or virtual environments. The administering authority can require remedial measures, restrict deployment within the sandbox or terminate participation for material non-compliance.
Monitoring and Evaluation
Monitoring combines continuous telemetry (secure logs, access records), periodic expert reviews and formal milestone reporting. The sandbox formulates Key Performance Indicators (KPIs) focused on safety incidents, compliance gaps identified and remediation rates. An expert advisory panel provides independent assessments and the Ministry consolidates outcomes into public-facing guidance and non-confidential summary reports. The process design allows feedback loops into Spain's Agenda España Digital 2026 and contributes practical inputs for EU-level guidance via the European AI Office; results are expected to support standardisation and market surveillance frameworks.
Penalties, Liability, and Appeals
The Royal Decree provides administrative tools to exclude or suspend participants for non-compliance with sandbox rules. Material breaches may lead to termination of participation, publication of non-compliance findings and proposed referrals to sectoral supervisors or sanctioning authorities under applicable Spanish and EU laws (including administrative fines and corrective orders envisaged by the Artificial Intelligence Act and related national sanctioning regimes). Participants retain civil liability under general Spanish tort and contract law; the sandbox does not grant exemptions from third-party liability. The Decree establishes appeal channels against administrative decisions within the Spanish administrative justice system.
Relationship to Other Instruments
The sandbox is legally grounded in Real Decreto 817/2023, interacts directly with the EU Artificial Intelligence Act (Regulation (EU) 2024/1689), and aligns with Spain's Agenda España Digital 2026 and the national recovery plan components referenced in the BOE. It complements sectoral safety and data protection regulation (AEPD guidance, healthcare device rules) and feeds into EU standardisation and market surveillance pathways.
International Alignment
The sandbox is explicitly coordinated with the European Commission and the European AI Office to produce guidance that can be shared and potentially harmonised at EU level. The Decree invites comparability with other Member State sandboxes and international best practices on regulatory sandboxes, and aims to provide a model for cross-border cooperation on testing foundational models and high-risk AI systems. Outcomes are intended to inform EU-level standardisation and may be cited in international regulatory dialogues on trustworthy AI.
Implementation Timeline
| Phase | Milestone | Date |
|---|---|---|
| Legal basis published | Real Decreto 817/2023 published in BOE | 2023-11-09 |
| First call published | Convocatoria (first public call) | 2024-12-20 |
| Selection announced | Provisional resolution selecting 12 systems | 2025-04-03 |
| Operational testing | On-boarding & testing commences (first cohort) | 2025-04 (April 2025) |
| Guidance publication | Draft technical guides and final report (expected) | 2025 (following testing period) |
Sources and References
| Source | Type |
|---|---|
| Real Decreto 817/2023 (BOE) | Primary Source |
| Ministry press release: Government launches first EU AI sandbox | Primary Source |
| Sandbox IA - Enlaces y Descargas (SE Digitalization) | Primary Source |
| Regulation (EU) 2024/1689 (Artificial Intelligence Act) | Primary Source |
Requirements for a company
What an organisation has to do under Spain - National AI Sandbox (Royal Decree 817/2023), at a glance. Not legal advice — the table below gives the provision and deadline for each item.
Must do
5- Establish residence, a permanent establishment, or designate an official representative in Spain to participate in the AI sandbox.Entities applying to or participating in the Spanish AI Sandbox
- Supply required technical documentation, risk assessments, human oversight mechanisms, and post-market monitoring plans to sandbox authorities.Spanish AI sandbox participants
- Execute formal participation agreements, including confidentiality and data-sharing arrangements, before operational testing begins.Selected AI sandbox participants
- Allow supervised testing and monitoring of the AI system within designated sandbox physical facilities or virtual environments.Spanish AI sandbox participants
- Submit required self-assessments and independent validation outputs to testing administrators throughout evaluation.Spanish AI sandbox participants
Must not do
2- Do not commit material breaches of sandbox rules or testing agreements that could lead to termination or sanctions.Spanish AI sandbox participants
- Do not treat sandbox participation as an exemption from third-party civil liability or applicable legal duties.Spanish AI sandbox participants
Should do
0Nothing in this category.
Should not do
0Nothing in this category.
Who must do what
The obligations under Spain - National AI Sandbox (Royal Decree 817/2023), most serious first. Not legal advice — verify against the official text before relying on it.
| # | Who | Requirement | By when | Where | Severity |
|---|---|---|---|---|---|
| 1 | Entities applying to or participating in the Spanish AI Sandbox | Establish residence, a permanent establishment, or designate an official representative in Spain to participate in the AI sandbox. “participating entities must be resident in Spain or have a permanent establishment in Spain, or designate a Spanish representative” | Before entering the sandbox | — | Critical |
| 2 | Spanish AI sandbox participants | Do not commit material breaches of sandbox rules or testing agreements that could lead to termination or sanctions. “Material breaches may lead to termination of participation, publication of non-compliance findings” | Throughout sandbox participation | — | Critical |
| 3 | Spanish AI sandbox participants | Do not treat sandbox participation as an exemption from third-party civil liability or applicable legal duties. “the sandbox does not grant exemptions from third-party liability” | At all times | — | Critical |
| 4 | Spanish AI sandbox participants | Supply required technical documentation, risk assessments, human oversight mechanisms, and post-market monitoring plans to sandbox authorities. “participants to supply technical documentation, risk assessments, human oversight mechanisms and post-market monitoring plans” | During sandbox onboarding and testing | — | Important |
| 5 | Selected AI sandbox participants | Execute formal participation agreements, including confidentiality and data-sharing arrangements, before operational testing begins. “execution of participation agreements, confidentiality and data-sharing arrangements” | During onboarding phase | — | Important |
| 6 | Spanish AI sandbox participants | Allow supervised testing and monitoring of the AI system within designated sandbox physical facilities or virtual environments. “allow supervised testing within sandbox facilities or virtual environments” | During testing phase | — | Important |
| 7 | Spanish AI sandbox participants | Submit required self-assessments and independent validation outputs to testing administrators throughout evaluation. “delivery of self-assessments, independent validation outputs” | During sandbox evaluation | — | Important |
Related Regulations
More AI regulation in Spain
AI regulation in Spain: full overview
- Spain - Green Algorithms Programme
- Spain - University-Industry AI Chairs (ETD/1180/2022)
- Spain - AI University-Industry Chairs (TDF/304/2025)
- Spain - Digital Rights Framework
- Spain - AI Research Strategy
- Spain State AI Laws Overview
- Spain - Asturias - AI Public Administration Decree (2025)
- Spain - Asturias - AI Regulation (98/2025)
© Regulations.AI · updated on 20 Sep 2026 · reviewed against official sources on 9 Sep 2026 using Gemini 3.6 Flash