Article 204 Spanish Criminal Code: unlawful entry by officials

Article 204 of the Spanish Criminal Code aggravates unlawful entry into dwellings and premises when committed by an authority or public official outside the cases allowed by law and without a criminal-law ground: it imposes the penalty of Articles 202 or 203 in its upper half plus absolute disqualification of six to twelve years.

Also cited as: article 204 Spanish Criminal Code · art. 204 CP · Spanish Penal Code article 204 · artículo 204 del Código Penal.

Wording of Article 204 of the Spanish Criminal Code

The authority or public official who, outside the cases permitted by law and without a legal ground based on an offence, commits any of the acts described in the two preceding articles shall be punished with the penalty respectively provided for in them, in its upper half, and absolute disqualification for six to twelve years.

Working translation prepared by Société Juridique from the consolidated Spanish text published by the Official State Gazette. It has no official status: the only authoritative version is the Spanish original, available at the Official State Gazette and reproduced verbatim in our Spanish-language entry for this provision. Source: Organic Law 10/1995 of 23 November, the Spanish Criminal Code.

Sentencing range. The penalty of the corresponding unlawful entry in its upper half, plus absolute disqualification for six to twelve years.

Elements of the offence

  1. The status of authority or public official, acting as such.
  2. Conduct defined in Articles 202 or 203: entry or remaining against the owner’s will.
  3. Action outside the cases permitted by law.
  4. Absence of a criminal-law ground authorising the entry, such as flagrancy or a judicial warrant.

Defence strategy

Establishing legal authorisation. Valid consent of the owner, flagrant crime or a judicial warrant exclude the offence. The official’s defence turns on documenting the enabling ground for the entry.

Examining urgency. Necessity and rescue situations decriminalise the entry; they are assessed as matters stood at the moment of acting, not with hindsight.

Separating disciplinary faults. An administrative irregularity does not equal the criminal intent to enter outside permitted cases; mistake as to the authorisation falls under Article 14.

Linking to unlawful evidence. For the person investigated in the underlying case, an illegal entry taints the evidence obtained; the official’s liability and the nullity of the search reinforce each other.

Are you under investigation or facing charges in Spain? Société Juridique acts for foreign nationals throughout Spain, with offices in Alicante and Madrid and a 24-hour custody line. +34 669 30 21 13 or enquire online.

This entry is provided for information only and does not constitute legal advice. The application of any provision depends on the circumstances of the individual case and requires examination of the case file by a qualified lawyer.

Frequently asked questions

What penalty does Article 204 of the Spanish Criminal Code provide for unlawful entry by officials?

The penalty of the corresponding unlawful entry in its upper half, plus absolute disqualification for six to twelve years.

What are the elements of the offence under Article 204 of the Spanish Criminal Code?

The status of authority or public official, acting as such. Conduct defined in Articles 202 or 203: entry or remaining against the owner’s will. Action outside the cases permitted by law. Absence of a criminal-law ground authorising the entry, such as flagrancy or a judicial warrant.

What defence strategy applies to a charge under Article 204 of the Spanish Criminal Code?

Establishing legal authorisation. Valid consent of the owner, flagrant crime or a judicial warrant exclude the offence. The official’s defence turns on documenting the enabling ground for the entry. Examining urgency. Necessity and rescue situations decriminalise the entry; they are assessed as matters stood at the moment of acting, not with hindsight. Separating disciplinary faults. An administrative irregularity does not equal the criminal intent to enter outside permitted cases; mistake as to the authorisation falls under Article 14. Linking to unlawful evidence. For the person investigated in the underlying case, an illegal entry taints the evidence obtained; the official’s liability and the nullity of the search reinforce each other.

Is the English text of Article 204 of the Spanish Criminal Code official?

Working translation prepared by Société Juridique from the consolidated Spanish text published by the Official State Gazette. It has no official status: the only authoritative version is the Spanish original, available at the Official State Gazette and reproduced verbatim in our Spanish-language entry for this provision. Source: Organic Law 10/1995 of 23 November, the Spanish Criminal Code.

Logotipos-abogacia-scje
Paseo De La Castellana 216 8º 28046 Madrid
Alicante – Playa de San Juan Av. Ansaldo 31, local 16, 03540 Alicante
London: 20 Wenlock Road, N1 7GU, United Kingdom
Paris: 72 Faubourg St Honoré, 75008, France
info@societejuridique.com

Société de Conseil Juridique et Expert is a law firm with offices in Madrid, Alicante, London and Paris, specialising in criminal law, technology law and economic and corporate crime. We provide strategic guidance in complex criminal proceedings, intellectual property and technological resources for legal decision-making with advanced forensic analysis. Our multidisciplinary team combines legal experience, legal intelligence and personal attention to deliver effective solutions adapted to each case. Legal assistance available 24 hours a day and online consultations.

Copyright © 2026 Société de Conseil Juridique et Expert S.L.

EspanolEnglishFrancaisРусскийItalianoDeutsch
WhatsApp · Urgencias 24h