Follow us


Spain is subject to the EU AI Act. It does not have a standalone, comprehensive regulation exclusively dedicated to AI, but has developed a framework through policy initiatives, specialised bodies, and sector-specific laws. Key components include the AI Strategy Spain 2024, together with the Spanish Agency for the Supervision of Artificial Intelligence (AESIA), and the AI Regulatory Sandbox. Various technology-neutral Spanish laws may also apply to entities who develop and use AI (for example, relating to data protection and privacy, intellectual property law, equality and employment law). Case law, including resolutions from relevant supervisory authorities, is also shaping the legal environment, especially in data privacy and employment law.

Spain's AI policy is established through:

  • The Digital Rights Charter, adopted by the government in 2021, which provides a set of non-binding, guiding principles to ensure respect for fundamental rights in digital environments, including AI. The Charter continues to be promoted for integration in the application and interpretation of the Spanish regulatory framework.
  • AI Strategy Spain 2024, which provides a framework that promotes an aspiration to lead in AI training, research, innovation, and ethical use in key sectors, both public and private. The International Advisory Council on Artificial Intelligence, set up by the Ministry for Digital Transformation and Public Service in June 2024, is tasked with advising the government further on AI policy formation.

Spain's forward-looking digital strategy, Digital Spain 2026 (España Digital 2026), includes various AI initiatives:

  • The Protection Plan for Vulnerable Groups in Artificial Intelligence and the Awareness and Trust Plan for Artificial Intelligence offer targeted initiatives to educate the public and safeguard marginalised groups, to enable research and awareness raising of AI.
  • The Observatory for the Social and Ethical Impact of Algorithms (OBISAL), first proposed in 2020, is a dedicated body intended to monitor and assess the societal and ethical effects of algorithmic systems, ensuring their alignment with ethical standards and the public interest.
  • The Trustworthy AI Seal is a certification to validate that AI systems meet ethical, technical, and regulatory standards, which aims to promote transparency, reliability, and trust in their use.

The government has also adopted various plans for promoting AI literacy and ethical use. The National Digital Skills Plan describes an initiative to train citizens and professionals in AI-related skills, promote STEM talent, and ultimately reduce the digital divide, while the National Plan for Algorithmic Bias Supervision provides guidelines on active monitoring and audits to prevent discrimination and correct biases in AI systems to foster transparency, public trust, and to protect vulnerable groups from automated decisions.

Spain is subject to the EU AI Act. Read more about this Europe-wide regulation on the EU page here. Additionally:

  • The Spanish Agency for the Supervision of Artificial Intelligence (AESIA) has been established by Royal Decree 729/2023 with the aim of overseeing the ethical use of AI, promoting transparency, and ensuring compliance with national and EU regulations. Key functions include supervision of high-risk AI systems and assessment of the ethical and social impact of AI. It coordinates efforts with other regulatory authorities involved in AI, including the Spanish Data Protection Agency (AEPD), the National Commission for Markets and Competition (CNMC), and the inspectorate for labour (Inspección de trabajo).
  • The AI Regulatory Sandbox, laid down by Royal Decree 817/2023, establishes a controlled environment for testing high-risk AI technologies under regulatory supervision. Managed by AESIA, it aims to facilitate safe experimentation with AI and ensure compliance with the EU AI Act.

From consumer protection law to online safety, AI continues to stretch existing legal frameworks. See the latest updates below.

Spain has already implemented or is in the process of implementing laws in AI:

  • The Extremadura Decree-Law 2/2023 advocates for ethical and trustworthy AI aligned with EU recommendations. It promotes digital literacy and workforce development in AI, encourages public-private collaboration for AI innovations and establishes testing environments.
  • The Galicia Draft Law for the Development and Promotion of Artificial Intelligence (December 2024) aims to ensure "ethical, safe, reliable, and human-centred" implementation and use of AI. It will regulate the use of AI in public administration and services, the oversight of design and application processes, tools for management and collaboration, and measures to facilitate and promote the use of AI in various sectors.

Spain is subject to EU General Data Protection Regulation (GDPR). It has passed Organic Law 3/2018 Protection of Personal Data and guarantee of digital rights (LOPDGDD) adapting the Spanish legal system to GDPR requirements on personal data, as required. The legislation regulates the use of personal data in AI systems and grants the right to avoid being subject to automated decisions that significantly impact individuals.

The Spanish Data Protection Agency (AEDP) provides various guidelines on the AI-data interaction, including by way of compliance with the GDPR:

  • Guidelines on adaptation to the GDPR for processing activities involving Artificial Intelligence from the Spanish data protection agency (AEPD) (2020), which seeks to address concerns raised within the framework of personal data protection and highlight the most relevant aspects of the AI-GDPR relationship that must be considered from the design phase and when implementing processing activities involving AI.
  • Guidelines on requirements for Audits of Processing Activities Involving AI from the Spanish Data Protection Agency (AEPD) (2021), which provides an initial approach to a set of controls that could be incorporated into audits of personal data processing activities utilising components based on AI, within the framework of the Guidelines on Adaptation to the GDPR for Processing Activities Involving AI.
  • Guidelines on biometric attendance control systems from the Spanish Data Protection Agency (AEPD) (2023), which establishes the requirements and measures that must be met for the processing of personal data using biometric technology that uses AI techniques, ensuring biometric systems adequately comply with the GDPR.

Spain prohibits algorithmic discrimination in labour and social contexts under Organic Law 3/2007 for Effective Equality Between Women and Men (as amended in 2022) and requires audits in order to detect biases in algorithms which could lead to discrimination.

The Statute of Workers' Rights (Royal Legislative Decree 2/2015) further establishes that the legal representatives of employees are entitled to be informed about the parameters, rules, and instructions on which algorithms or artificial intelligence systems are based, that may impact working conditions, access to and retention of employment, including the creation of worker profiles.

Copyright

According to Spain's Intellectual Property Law (Royal Legislative Decree 1/1996), only natural persons can be reputed authors of a work, meaning works created entirely by AI are not protected unless significant creative intervention from a human concurs.

Training of AI systems is one of the key areas where copyrights may be affected by AI systems. AI developers often intend to be covered by text and data mining exemptions. In line with the relevant EU directives, Spain’s Intellectual Property Law (Royal Legislative Decree 1/1996) allows text and data mining without authorisation for scientific research purposes by public or non-profit entities, provided copies are securely stored and not used for other purposes. It also permits text and data mining of publicly accessible content for commercial or non-commercial purposes, except where rights holders explicitly opted out by clearly indicating exclusions.

Albeit a non-regulatory initiative, the Guidelines on Best Practices in the Use of AI (2024) issued by the Ministry of Culture aim to ensure that AI is used as a support tool for creators and cultural professionals while respecting copyrights. The guidelines stipulate that, in the hiring of creative services, human work should be prioritized, with AI only being used as a complementary tool. Additionally, for national awards on culture, it promotes the inclusion of clauses preventing the recognition of works created entirely by generative AI, and for subsidies it recommends including clauses to ensure compliance with current regulations on AI and intellectual property.

Patents

The Spanish Patent and Trademark Office (OEPM) Law 24/2015 on Patents stipulates that the right to a patent belongs to the inventor or their successors, being a natural person. This means that even AI significantly contributes to the invention process, it cannot be legally recognised as an inventor itself. The Spanish Patent and Trademark Office (OEPM) has stated that no changes to current legislation are needed, as a natural person can always be identified as the inventor in cases of AI-assisted inventions.

Public Administration

Law 19/2013 on transparency, access to public information, and good governance establishes a framework for transparency in public sector activities in Spain and facilitates citizens' access to information. It ensures access to information about algorithmic systems used in administrative decision-making, though transparency may be limited in practice due to public security, intellectual property, trade secrets, and personal data protection.

Transparency is outlined further under Law 40/2015 on the Legal Regime of the Public Sector, which requires transparency in algorithms used by the administration and promoting automation in administrative processes with human oversight, while Law 39/2015 on Common Administrative Procedure grants citizens further rights to understand how algorithms affect decisions impacting them and mandates disclosure of AI use in public procedures.

Explore the latest landmark rulings as AI-related disputes make their way through the courts.

In progress

AEPD sanctioning procedure resolution (resolution no. PS-00482-2023) on 3 December 2024, Football Club Atlético Osasuna Case. On 3 December 2024, the football club Osasuna was fined €200,000 by the Spanish Data Protection Agency (AEPD) for using a facial recognition system at the El Sadar stadium during the 2022-2023 season. The AI system allowed club members who voluntarily opted in to access the stadium using AI-based (RBR) facial recognition technology, while traditional access methods remained available. Osasuna has announced intent to appeal the fine to Spain´s National Court (Audiencia Nacional), arguing that the AEPD based its decision on outdated facial recognition technologies and not the specific system implemented by the club, and noting that the Spanish National Intelligence Agency´s National Cryptologic Center (CCN-CNI) recommended using access control systems based on RBR biometric templates for high-security settings (also in December 2024).

Sentence of the National Court(Audiencia Nacional)  on 30h April 2024 (appeal no. 51/2022), BOSCO Case: This case revolved around transparency and access to algorithms used by the Public Administration in Spain. The Civil NGO requested access to the source code of BOSCO, an algorithm determining eligibility for the electricity social voucher. The Administration denied this request on grounds of security, data protection, and intellectual property. After initial court rulings, the National Court (Audiencia Nacional) upheld the Administration´s reasoning in April 2024 and further established that access to the source code was not necessary to fulfil the necessary transparency goal, and that its disclosure could undermine the system’s security as it could expose vulnerabilities susceptible to exploitation, endangering the integrity of the system and associated data. An appeal from the Civil NGO has been filed with the Spanish Supreme Court.

  • Several cases are being brought in criminal courts involving counts of child pornography or moral integrity as a result of the use of AI applications to manipulate images of persons and sharing such images in social media groups, including in the context of deepfake technologies.

Concluded

Judicial decree 2/2024 of the High Court of Justice (Tribunal Superior de Justicia) in Navarra on 4 September 2024 (judicial decree no. 17/2024), Misuse of AI by Lawyers Case. On 4 September 2024, the High Court in Navarre ruled on the legal responsibility of a lawyer who included in a legal complaint a citation from the Colombian Criminal Code, allegedly due to improper use of a generative AI tool. The court highlighted the need to use such tools with due diligence; no sanctions were imposed on the lawyer.

AEPD appeal for reversal (recurso de reposición) (resolution no. PS-00553/2021) on 28 April 2023, GSMA Ltd, a global event company, oversaw the 2021 Mobile World Congress event in Barcelona. Among other activities, GSMA processed the personal data of those attending the event. GSMA Ltd was fined €200,000 in 2023 by the Spanish Data Protection Agency (AEPD) for using a facial recognition system without complying with the requirements set out in the GDPR. Specifically, the AEPD sanctioned the company organising the event for not having carried out, prior to the start of the data processing, the impact assessment required by the regulations. No public information is available as to whether GSMA challenged or not the AEPD resolution in court.


Key contacts

Iria Calviño photo

Iria Calviño

Partner, Co-Head ESG EMEA, Madrid

Iria Calviño
Pablo García Mexía photo

Pablo García Mexía

Consultant - Head of Digital Law, Madrid, Madrid

Pablo García Mexía
Miguel Ángel Barroso López photo

Miguel Ángel Barroso López

Of Counsel, Madrid

Miguel Ángel Barroso López
Rebeca Oriol photo

Rebeca Oriol

Junior associate, Madrid

Rebeca Oriol

Stay in the know

We’ll send you the latest insights and briefings tailored to your needs

Sydney Perth Brisbane Melbourne Technology, Media and Entertainment, and Telecommunications Emerging Technology Artificial Intelligence Technology, Media and Telecommunications Artificial Intelligence Tech Regulation Digital Transformation Emerging Technologies AI and Emerging Technologies Iria Calviño Pablo García Mexía Miguel Ángel Barroso López Rebeca Oriol