What is Spain’s data protection law? Since May 25, 2018, personal data in Spain has been governed by the EU General Data Protection Regulation (GDPR, Regulation (EU) 2016/679) together with Organic Law 3/2018 of December 5 on the Protection of Personal Data and Guarantee of Digital Rights (LOPDGDD), published in the BOE on December 6, 2018 and in force since December 7, 2018. The LOPDGDD repealed the 1999 Spanish Data Protection Act (LOPD), Organic Law 15/1999, apart from a few transitional provisions. The regulator is the Spanish Data Protection Agency (AEPD).
Spanish Data Protection Act: From the LOPD to the LOPDGDD
Many people still search for the Spanish Data Protection Act as the LOPD (Ley Orgánica de Protección de Datos). That name belongs to Organic Law 15/1999 of December 13, which governed personal data in Spain for almost two decades. Today the GDPR applies directly in Spain, and the LOPDGDD adapts Spanish law to the GDPR and completes its provisions. The LOPDGDD also guarantees a set of digital rights based on Article 18.4 of the Spanish Constitution.
In practice, organizations processing personal data in Spain follow the GDPR first, then the Spanish-specific rules in the LOPDGDD, such as the age at which minors can consent, the list of organizations that must appoint a data protection officer, and the limitation periods for infringements.
The History of Data Protection in Spain
Spain’s 1978 Constitution made privacy a fundamental right, and Article 18.4 calls for limits on the use of information technology. The first comprehensive law came in 1999 with the Ley Orgánica de Protección de Datos (LOPD), Organic Law 15/1999, the original Spanish Data Protection Act.
The LOPD laid the foundation for data protection practice in the country. It addressed the collection, processing and storage of personal data, emphasizing transparency and individual rights.
The GDPR, adopted on April 27, 2016, has applied across the EU since May 25, 2018. Spain first adapted its law with Royal Decree-Law 5/2018 of July 27, then adopted the LOPDGDD (Organic Law 3/2018) in December 2018. The LOPDGDD repealed both the 1999 LOPD (except for limited transitional and additional provisions) and Royal Decree-Law 5/2018. This alignment with the GDPR brought Spain’s rules in line with the harmonized EU framework.
The LOPDGDD’s consolidated text has since been amended several times; the BOE lists changes in 2019, 2020, 2021, 2023 and December 2025.
GDPR and Its Influence on the LOPDGDD
The General Data Protection Regulation unified data protection rules across the European Union. It aimed to empower individuals regarding their personal data and create a harmonized legal environment for businesses operating within the EU.
Because the GDPR is a regulation, it applies directly in Spain and replaced most of the 1999 LOPD’s substantive rules. The LOPDGDD does not repeat the GDPR; it fills in the areas the GDPR leaves to member states and adds Spanish rules, helping organizations meet the highest data protection standards.
Key Provisions of Spain’s Data Protection Law (GDPR and LOPDGDD)
The key provisions below come from the GDPR and the LOPDGDD together. They are the foundation for organizations and individuals seeking to handle personal data responsibly in Spain.
1. Data Subject Rights and Principles
The GDPR and Title III of the LOPDGDD give individuals control over their personal information. These rights include the right of access, allowing individuals to find out whether their data is being processed and for what purpose. The right to rectification lets individuals correct inaccurate data, and the right to erasure allows them to request deletion of their data in certain circumstances.
The principles governing the processing of personal data (Title II of the LOPDGDD, alongside the GDPR) include the requirement for processing to be lawful, fair and transparent.
Organizations must provide clear and accessible information to individuals about how their data will be processed.
2. Data Controller and Processor Responsibilities
The GDPR and Title V of the LOPDGDD distinguish between data controllers, who determine the purposes and means of processing, and data processors, who process data on behalf of controllers. Both carry significant responsibilities. Data controllers must implement appropriate measures to ensure the security and confidentiality of processed data. Data processors must process data only as instructed by the controller and implement security measures.
3. Consent and Legal Basis for Processing
Valid consent is one of the legal bases for processing. Organizations relying on it must ensure that individuals give informed and unambiguous consent. The GDPR also sets out the other legal bases: performance of a contract, compliance with a legal obligation, protection of vital interests, a task carried out in the public interest or the exercise of official authority, and legitimate interests pursued by the controller or a third party.
Data Protection Authorities in Spain
In Spain, data protection is overseen by various authorities, each with specific competencies in different regions. The primary national body is the Agencia Española de Protección de Datos (AEPD), the Spanish Data Protection Agency. The AEPD is the general overseeing authority responsible for data protection in the entire country’s private and public sectors. Under Article 57 of the LOPDGDD, the regional authorities below supervise processing by their autonomous community’s public sector and local entities.
Regional Authorities
- Autoritat Catalana de Protecció de Dades (APDCAT): Operating in Catalonia, this regional authority focuses on data protection within this autonomous community.
- Datuak Babesteko Euskal Bulegoa | Agencia Vasca de Protección de Datos (DBEB/AVPD): Serving the Basque Country, this regional authority manages data protection issues within this northern Spanish autonomous community.
- Consejo de Transparencia y Protección de Datos de AndalucÃa (CTPDA): Centered in Andalusia, this regional authority oversees data protection matters within the southern Spanish autonomous community.
National Judiciary Authority
- Dirección de Supervisión y Control de Protección de Datos del Consejo General del Poder Judicial (CGPJ): Operating at the national level, this authority specifically focuses on processing personal data for jurisdictional purposes.
Compliance with the GDPR and LOPDGDD in Spain
Complying with Spain’s data protection rules is not only a legal obligation but a crucial step in building trust in how personal data is handled. Organizations operating in Spain must meet the GDPR and the LOPDGDD to respect data subjects’ rights and avoid sanctions.
1. Data Protection Impact Assessment (DPIA)
Organizations should conduct Data Protection Impact Assessments (DPIAs) to identify and mitigate risks associated with their processing activities. DPIAs are particularly important when processing operations are likely to result in high risks to the rights and freedoms of individuals.
2. Appointment of Data Protection Officer (DPO)
Controllers and processors must appoint a Data Protection Officer (DPO) in the cases set out in Article 37(1) of the GDPR. Article 34 of the LOPDGDD adds a list of organizations that must always appoint one, including professional associations, universities, credit institutions, insurers, private security companies and electronic communications operators. The appointment must be notified to the AEPD or the competent regional authority within ten days.
3. Documentation and Record-Keeping
Robust documentation is a cornerstone of compliance. Organizations must maintain detailed records of their processing activities, including the purposes of processing, categories of data subjects and any data transfers. This documentation supports transparency and helps when responding to inquiries from regulators.
4. Data Breach Notification
A personal data breach must be notified to the competent data protection authority within 72 hours of the controller becoming aware of it, unless the breach is unlikely to result in a risk to individuals. In Spain, notifications to the AEPD go through the breach channel on its electronic office (sede electrónica). Where a breach is likely to result in a high risk, the affected individuals must also be informed.
5. Child Data Processing
When offering services in Spain, take care with children’s personal data. Under Article 7 of the LOPDGDD (which uses the option in Article 8 of the GDPR), a minor’s consent is valid only if the minor is over fourteen. For children under fourteen, consent must come from the holder of parental authority or guardianship.
Comparative Analysis: LOPDGDD vs. GDPR
The LOPDGDD and the GDPR share the goal of protecting individuals’ privacy and ensuring responsible data processing. They are not alternatives: the GDPR sets the core rules, and the LOPDGDD adapts and completes them for Spain.
Scope and Applicability
The GDPR applies to organizations processing the personal data of individuals in the EU, wherever the organization is located. The LOPDGDD complements the GDPR with Spanish-specific rules, so organizations processing personal data in Spain need to follow both.
Sanctions and Penalties
Fines come from the GDPR, which allows penalties up to a percentage of the non-compliant organization’s worldwide annual turnover. Title IX of the LOPDGDD classifies infringements as very serious, serious or minor, which mainly sets their limitation periods: three years, two years and one year respectively. Understanding these rules is part of managing the complexities of compliance.
Data Processing Principles
Both share fundamental processing principles, such as transparency, fairness and purpose limitation. The LOPDGDD adds Spanish detail on top of them, including rules for specific processing situations in its Title IV.
Digital Rights Under Title X of the LOPDGDD
Title X of the LOPDGDD, “Guarantee of digital rights”, goes beyond the GDPR. According to the law’s preamble, it recognizes rights such as net neutrality, the right to be forgotten, portability, digital wills and the right to digital disconnection at work.
Spain’s Constitutional Embrace of Individual Rights
The journey into Spain’s data protection landscape is a voyage through the pages of history, shaped by a commitment to democratic values and the protection of fundamental rights.
The Spanish Constitution of 1978, conceived in the aftermath of a period marked by authoritarian rule, symbolizes Spain’s triumphant embrace of democracy, liberty, and justice.
Crafted in the bustling halls of Madrid, the Constitution was a collaborative endeavor, uniting representatives from diverse ideological backgrounds. The preamble articulates a commitment to democratic values, social justice, and the rule of law, laying the groundwork for a constitutional framework that reveres the dignity and rights of individuals.
Embedded within its provisions are the fundamental rights that form the cornerstone of the Spanish legal system. Rights to life, liberty, security, freedom of expression, and privacy became constitutional guarantees, shaping subsequent legislation: first the 1999 Ley Orgánica de Protección de Datos (LOPD) and today the LOPDGDD, which bases its digital rights on Article 18.4 of the Constitution.
As we conclude this journey through the Spanish data protection landscape, let’s recognize that the commitment to privacy is not merely a legal obligation but a profound cultural and historical legacy.