Skip to content
Legal Analysis

Obstruction of Justice in Spain: Complete Legal Guide

10 February 2026Updated: 

Obstruction of justice covers several offences in Arts. 451 to 467 CP. Deleting evidence of someone else's offence to prevent its discovery is cover-up (Art. 451.2 CP, 6 months to 3 years); the perpetrator deleting their own evidence does not commit it. Silence is a right (Art. 24.2 of the Constitution), and covering up for close relatives is exempt (Art. 454 CP) unless you help them profit from the offence.

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

Obstruction of justice is one of the most misunderstood and dangerous offences in the Spanish Criminal Code (CP). Many people commit acts of obstruction without realizing that they are crossing the criminal line, believing they are simply "protecting their interests" or "helping a friend". As criminal lawyers specialized in obstruction of justice, we explain when a legitimate action becomes a crime.

What is Obstruction of Justice?

Obstruction of justice is not a single offence, but a family of conducts that interfere with the administration of justice. The Spanish Criminal Code (CP) regulates them in Articles 451 to 467, protecting the integrity of the judicial system.

The most common forms are:

  • False testimony (Arts. 458-460): Lying under oath in judicial proceedings.
  • Evidence tampering (Art. 451): Destroying, hiding or altering evidence.
  • Cover-up (Art. 451): Helping an offender evade justice.
  • Witness intimidation (Art. 464): Threatening or coercing witnesses.
  • Breach of sentence or measures (Art. 468): Breaching a penalty, security measure or precautionary measure.

False Testimony: More Than a Lie

Not every lie is perjury/false testimony. For the offence to apply, three elements must concur:

  1. Statement in judicial proceedings: It must be made in a judicial case (Art. 458 CP); lying as a witness to the police is not false testimony.
  2. Objective falsehood: The statement must be contrary to the truth.
  3. Intent: The witness must know they are lying. A memory or perception mistake is NOT a crime.

Real-life case: A witness states that they saw the accused at the crime scene at 10 PM. It is later proven that the defendant was elsewhere. Is it perjury/false testimony? NO, if the witness genuinely believed they saw him (perception error). YES, if they knew they had not seen him and lied deliberately.

Penalties range from 6 months to 2 years in prison and a fine of 3 to 6 months, and 1 to 3 years where the false testimony is given against the defendant in criminal proceedings (Art. 458.2 CP), but there is a way out: retraction. If, in criminal proceedings, the witness retracts in time and form, telling the truth before judgment is delivered, they are exempt from punishment (Art. 462 CP). This is a unique opportunity that must be seized with immediate legal advice.

Deleting Messages: When Is It a Crime?

This is the most common question in the digital age. The answer depends on TWO critical factors:

  • Did you know an offence had been committed? Cover-up requires knowing that an offence in which you took no part as perpetrator or accomplice was committed (Art. 451 CP); routine deletion without that knowledge is not an offence.
  • What was your intent? Deleting for routine privacy reasons (e.g. cleaning your phone every month) is different from deleting specifically to hide evidence.

Example 1 (NOT a crime): You have WhatsApp set to automatically delete messages every 30 days. On day 25, the police summon you to give a statement about an event from day 10. The messages have already been auto-deleted. There is NO obstruction because it was routine and prior to knowing about the investigation.

Example 2 (may be a crime): The police summon you as a witness tomorrow. That night, you manually delete the chats proving someone else's offence so that it is not discovered. This may be cover-up (Art. 451.2 CP): you knew an offence had been committed and acted to prevent its discovery. If you are the suspect yourself, deleting your own evidence is not cover-up, but it may be weighed as circumstantial evidence against you.

The penalty is 6 months to 3 years in prison. But the defence can argue lack of knowledge or intent, which requires forensic analysis of the device to show prior deletion patterns.

Helping a Family Member: The Exemption That Saves You

Imagine that your brother committed an offence and asks you to hide him at your house. Do you commit a crime if you help him? The answer is: IT DEPENDS on your relationship with him.

Article 454 of the Spanish Criminal Code (CP) establishes a family exemption: the following do NOT commit the offence of cover-up/harboring:

  • The spouse or person joined by a similar relationship of affection
  • Ascendants (parents, grandparents)
  • Descendants (children, grandchildren)
  • Siblings

This exemption recognises that family loyalty is a higher value that should not be criminalised. BUT it has limits:

  • It only applies to close relatives. A cousin is NOT exempt; a brother-in-law is, because the exemption covers in-laws in the same degrees.
  • It covers the cover-up of Art. 451.2 and 451.3: hiding or altering evidence and helping to evade the investigation or capture. If you help commit new offences, you are still liable.
  • It does NOT cover profiting: helping the relative benefit from the proceeds of the offence (Art. 451.1) is still punishable.

Practical case: Your son runs someone over and flees. He arrives home frightened. You hide him in the basement for a week. The police ask about him and you say you don't know where he is. Is it a crime? NO, you are exempt as his parent. The exemption would also cover washing the car to remove traces of the hit-and-run (Art. 451.2); it would not cover helping him profit financially from the offence.

The Right to Remain Silent Is NOT Obstruction

This is a common and dangerous misconception. Many people believe that if they do not cooperate with the police, they are committing obstruction. FALSE.

In Spain, you have a constitutional right to:

  • Not testify against yourself (Art. 24.2 of the Spanish Constitution)
  • Not confess your guilt
  • Remain silent at any time

Exercising these rights can NEVER be used as evidence of obstruction. The suspect's silence cannot be treated as obstruction: it is a fundamental right (Art. 24.2 of the Constitution), and nobody is obliged to cooperate with an investigation directed against them.

BUT BE CAREFUL: There is a huge difference between:

  • Remaining silent: "I invoke my right to remain silent." -> LEGAL
  • Lying: "No, I was not there" (when you were). -> NOT AN OFFENCE if it only concerns your own conduct, but it can backfire; blaming someone else falsely IS an offence

If you decide to speak as a suspect, lying about your own conduct is not an offence, but falsely attributing an offence to someone else is (Art. 456 CP), and so is simulating one (Art. 457 CP); as a witness in judicial proceedings, lying is false testimony (Art. 458 CP). That is why the golden rule is: If you do not have a lawyer present, remain absolutely silent.

Witness Intimidation: The Red Line

Contacting a witness to ask them to "tell the truth" may seem innocent, but it can be a crime if done in an intimidating way.

Article 464 CP punishes with 1 to 4 years in prison and a fine of 6 to 24 months, in its upper half if the aim is achieved, anyone who uses violence or intimidation to:

  • Prevent someone from testifying
  • Influence the content of their testimony
  • Make them retract what they have stated

Where is the line?

  • LEGAL: "Hello, I know you are going to testify. I just ask you to tell the truth about what you saw."
  • GRAY ZONE: "I hope you don't say anything that harms me, since we are friends."
  • CRIME: "If you testify against me, you'll regret it" or "I know where your children live."

The defence in these cases focuses on the context. A message that looks threatening in isolation can be harmless in its full context. That is why forensic analysis of ALL communications - not just those presented by the prosecution - is essential.

Lawyers: Immune to Obstruction

A common question: Can a lawyer be charged with obstruction for advising their client on how to defend themselves?

The answer is an emphatic NO. The legitimate exercise of the defence is not an offence, although there is no absolute immunity: the Code punishes a lawyer who destroys or hides documents received in that capacity (Art. 465), reveals proceedings declared secret (Art. 466) or manifestly harms their client (Art. 467). The following, by contrast, are protected:

  • Advising the client to remain silent
  • Developing defence strategies
  • Contacting witnesses to prepare the case
  • Challenging unlawfully obtained evidence

Professional secrecy is sacrosanct. A lawyer does NOT commit cover-up/harboring by advising a client who is fleeing justice, as long as they limit themselves to giving legal advice and do not actively take part in the flight.

Key point: advising a client on their rights, including the right not to testify, is part of the right of defence (Art. 24.2 of the Constitution).

Consequences Beyond Prison

A conviction for obstruction of justice does not only entail prison. The collateral consequences can be devastating:

  • Criminal record: Which affects public service exams, residence permits and jobs involving minors.
  • Professional disqualification: Particularly serious for lawyers, doctors and civil servants. It can mean the end of your career.
  • Concurrence with the main offence: if you are convicted of the offence under investigation and of obstruction, the penalties for both are imposed (Art. 73 CP).
  • Loss of credibility: A conviction for perjury/false testimony destroys your credibility as a witness in any future proceeding.

Effective Defence Strategies

As defence lawyers, we attack the weakest elements of the prosecution:

  1. Lack of knowledge: Proving you did not know there was an ongoing investigation when you engaged in the conduct.
  2. Lack of intent: Showing that your actions had a legitimate purpose (privacy, business confidentiality) and were not aimed at obstructing justice.
  3. Exercise of rights: Arguing that you simply exercised your constitutional rights (silence, defence).
  4. Family exemption: In cover-up/harboring cases, proving the family relationship that exempts you.
  5. Timely retraction: In perjury/false testimony, retracting immediately to be exempt from punishment.
  6. Nullity of evidence: If the underlying investigation was unlawful, the obstruction evidence may be null.

Practical Recommendations

If you find yourself involved in an investigation:

  • Do NOT delete anything once you know about the investigation. Even if you think it is incriminating, deleting it is worse.
  • Do NOT speak with witnesses without legal advice. Any contact can be interpreted as intimidation.
  • NEVER lie to the police or judge. If you do not want to talk, remain silent, but do not make things up.
  • Contact a lawyer IMMEDIATELY before giving any statement or taking any action.
  • Document everything: If you have routine data-deletion practices, document them BEFORE any problem arises.

Final Warning

Obstruction of justice is the offence that turns a legal problem into a catastrophe. Many people who would have been acquitted of the original offence end up in prison for obstruction. The golden rule: in the face of any investigation, SILENCE and a LAWYER. Do not try to "fix" things on your own.

Investigated for Obstruction of Justice?

If you are accused of perjury/false testimony, cover-up/harboring or evidence tampering, every minute counts. Our specialist criminal lawyers can help you with your case.

Contact us now: 91 078 65 74

Official text: article 451 of the Spanish Criminal Code (BOE)

Frequently asked questions

Is deleting messages during an investigation a crime?

It depends on who deletes and why. Deleting evidence of someone else's offence, knowing it was committed, to prevent its discovery can be cover-up (Article 451.2 CP, prison of 6 months to 3 years). Routine deletion without that knowledge is not an offence, and the perpetrator or accomplice of the offence under investigation does not commit cover-up by deleting their own evidence, although the deletion may be used as circumstantial evidence against them.

Is helping a family member evade justice a crime?

Article 454 exempts from punishment for cover-up anyone who shields their spouse or stable partner, ascendants, descendants, siblings or in-laws in the same degrees (a brother-in-law, for example), whether by helping them evade the investigation or by hiding or altering evidence. The only exception is helping them profit from the proceeds of the offence (Article 451.1). It does not extend to more distant relatives such as cousins.

Is remaining silent obstruction of justice?

No. Remaining silent and not testifying against yourself are constitutional rights under Article 24.2 of the Spanish Constitution and never amount to obstruction. Lying about your own conduct as a suspect is not an offence; falsely accusing someone else is (Article 456 CP), and so is lying as a witness in judicial proceedings (Article 458 CP).

What penalty does false testimony carry?

False testimony by a witness in judicial proceedings is punished with prison of 6 months to 2 years and a fine of 3 to 6 months, and with prison of 1 to 3 years where it is given against the defendant in criminal proceedings (Article 458 CP). However, in criminal proceedings a witness who retracts in time and form, telling the truth before judgment is delivered, is exempt from punishment under Article 462 of the Criminal Code.

Do you need criminal defence in this area?

We are criminal defence lawyers specialising in arbitrary enforcement of one's own right. We act urgently to protect your rights.

View expertise

This page is for information purposes only and does not constitute legal advice: every case requires individual assessment. How this content is produced and verified: editorial policy.

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.