Skip to content
Alonso Sala
CRIMINAL LAWYERS
Legal Analysis

Article 197 Spanish Criminal Code: Disclosure of Secrets (2026)

May 20, 2026Updated: 

Key Takeaways

  • Access to messages and data without consent
  • Disclosure: aggravated penalty of 2 to 5 years
  • Art. 197.7: sharing intimate images
  • Accessing a partner's phone may be an offence

Article 197 of the Spanish Criminal Code protects privacy by punishing the unauthorised discovery of another's secrets — seizing their papers, letters, emails, documents or personal data, or intercepting their telecommunications without consent. The basic forms in Arts. 197.1 and 197.2 CP carry 1 to 4 years in prison and a fine of 12 to 24 months; disseminating, revealing or transferring what was discovered to third parties raises the penalty to 2 to 5 years (Art. 197.3 CP), and it reaches 3 to 5 years where the acts are committed by the person in charge of the files or by using the victim's personal data (Art. 197.4 CP). Sharing intimate images or recordings obtained with consent but disseminated without it is a separate offence carrying 3 months to 1 year in prison or a fine of 6 to 12 months (Art. 197.7 CP).

Need help with your case? Talk to a criminal defense lawyer at Alonso Sala.

Article 197 of the Spanish Criminal Code protects the fundamental right to privacy. It punishes the discovery and disclosure of secrets: accessing another's messages, documents or data without consent, and also sharing intimate information about another person. As criminal defence lawyers, we explain its content. Penalties range from 1 to 4 years in prison and a fine of 12 to 24 months for the basic forms of Arts. 197.1 and 197.2 CP to 2 to 5 years in prison where what was discovered is disseminated, revealed or transferred to third parties (Art. 197.3 CP).

What Article 197 Says

Article 197.1 punishes anyone who, to discover the secrets or breach the privacy of another, without consent, seizes their papers, letters, emails or other personal documents, intercepts their telecommunications or uses listening or recording devices. Penalty: prison of 1 to 4 years and a fine of 12 to 24 months.

The Forms of the Offence

  • Art. 197.2 — Personal data: seizing, using or altering reserved personal or family data held in files.
  • Art. 197.3 — Disclosure: revealing or transferring discovered data or secrets to third parties. Aggravated penalty: prison of 2 to 5 years.
  • Art. 197.7 — Intimate images: sharing images or recordings of a person obtained with consent in a private place, where the disclosure seriously harms their privacy. This is so-called revenge porn.

Accessing a Partner's Phone

One of the most common scenarios is accessing, without consent, a partner's or ex-partner's phone or accounts. Reading their messages to "check" something may amount to the offence under Article 197 — even within marriage.

⚠️ Sharing intimate images

Forwarding an intimate photo or video of another person — even if they sent it to you voluntarily — may be an offence under Article 197.7, with an aggravated penalty if the victim is a partner or a minor.

Defence Strategies

  1. Consent: the victim authorised the access or recording.
  2. No purpose: there was no intent to discover secrets or breach privacy.
  3. Unlawful evidence: if the material was obtained breaching fundamental rights, its nullity is sought.
  4. Atypicality: the data was not reserved or did not affect the core of privacy.
  5. Compensation to trigger the mitigating factor of Art. 21.5.

Charged with disclosing secrets or breaching privacy?

We assess how the evidence was obtained and whether the conduct truly amounts to Article 197.

📞 Call us: +34 91 078 65 74

⚖️ Need a criminal defence lawyer?

Defence and private prosecution in privacy offences, image sharing and unlawful data access.

→ Criminal defence: full legal information

Frequently asked questions

What does article 197 of the Criminal Code punish?

Unauthorised intrusion into another person's privacy: seizing their emails, messages or personal data, intercepting their communications or using listening or recording devices without consent, in order to discover their secrets. The basic penalty is imprisonment of 1 to 4 years plus a fine.

Is it a crime to read your partner's phone or WhatsApp?

Accessing another person's communications or accounts without consent —including your partner's— in order to discover their secrets can be an offence under art. 197 CP. Marriage or cohabitation does not authorise violating the other person's privacy.

And sharing intimate photos or videos without permission?

Disseminating intimate images or recordings obtained with consent but disclosed without it (so-called 'revenge porn') is a specific offence under art. 197.7 CP, punished with imprisonment of 3 months to 1 year or a fine, and aggravated if the victim is a partner or a minor.

Can a recording that violates privacy be used as evidence?

No. Evidence obtained in violation of fundamental rights (art. 11 LOPJ) is null and cannot be used at trial, and it carries with it the nullity of everything derived from it. This is one of the main lines of defence against this type of evidence.

What prison penalty does each form of Article 197 CP carry?

Seizing correspondence or intercepting communications (Art. 197.1 CP) and the unauthorised access to or use of personal data held in files (Art. 197.2 CP) carry 1 to 4 years in prison and a fine of 12 to 24 months. Where the person who discovered or obtained that data then disseminates, reveals or transfers it, the penalty is 2 to 5 years in prison (Art. 197.3, first paragraph, CP). By contrast, a third party who, knowing the unlawful origin and without having taken part in the discovery, merely passes it on faces 1 to 3 years in prison and a fine of 12 to 24 months (Art. 197.3, second paragraph, CP). If the acts are committed by the person in charge of or responsible for the files, the penalty rises to 3 to 5 years (Art. 197.4 CP).

When is the offence of disclosure of secrets aggravated?

The penalty is imposed in its upper half where the data affected reveals ideology, religion, beliefs, health, racial origin or sexual life, or where the victim is a minor or a person with a disability in need of special protection (Art. 197.5 CP). It is also aggravated where the acts are committed for profit (Art. 197.6 CP), and where they involve profit and sensitive data the penalty is 4 to 7 years in prison. If the offender is an authority or public official acting outside the cases permitted by law and abusing their office, Art. 198 CP applies the penalties in their upper half plus absolute disqualification for 6 to 12 years.

When does the offence of discovery and disclosure of secrets become time-barred?

The limitation period depends on the maximum penalty for each form, under Art. 131 CP. The basic forms of Art. 197 (paragraphs 1 to 4, with penalties reaching five years) become time-barred after five years. Disseminating intimate images obtained with consent (Art. 197.7 CP), being a less serious offence punished with 3 months to 1 year in prison or a fine, also becomes time-barred after five years, the minimum period under Art. 131 CP for less serious offences. By contrast, the form in Art. 197.6 CP that punishes acts committed for profit involving sensitive data with 4 to 7 years in prison exceeds a five-year maximum and becomes time-barred after ten years. The period runs from the day the act is committed.

Is it an offence to record a conversation I am taking part in?

Recording a conversation in which you yourself take part is not an offence of discovery and disclosure of secrets, because Art. 197 CP punishes seizing or intercepting other people's communications, not one's own. The settled case law distinguishes between recording a conversation you are part of, which is lawful, and intercepting or listening to third parties' communications without their knowledge, which does fall under Art. 197.1 CP. It is a separate question whether later disseminating that recording may harm the other speaker's privacy or reputation and give rise to liability on other grounds.

Is a complaint needed to prosecute, and what penalty applies to unauthorised computer access?

As a general rule a complaint from the injured party or their legal representative is required to prosecute the offences in this chapter, and the victim's pardon extinguishes the criminal action (Art. 201 CP). No complaint is needed where the offence affects the general interest or a plurality of persons, where the victim is a minor or a person with a disability in need of special protection, or where it is committed by an authority or public official under Art. 198 CP. Separately, unauthorised access to an information system in breach of its security measures carries 6 months to 2 years in prison (Art. 197 bis CP).

Do you need criminal defense in this area?

We are criminal defense lawyers specializing in general criminal defense. We act urgently to protect your rights.

View expertise

Related Articles

View all

Before you act, speak to a criminal defence lawyer.

What you read here is just the beginning. Transform information into active defence by contacting our team of experts.