Article 402 Spanish Criminal Code: Unlawful Exercise of Public Functions

Article 402 of the Spanish Criminal Code punishes with imprisonment of one to three years the person who unlawfully performs acts proper to a person in authority or a public official, attributing to himself official capacity. It is a short provision with a demanding structure: it is not enough to claim a title or to wear a uniform, the accused must actually perform an act reserved to public authority while holding himself out as official.

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

Wording of Article 402 of the Spanish Criminal Code

A person who unlawfully performs acts proper to a person in authority or a public official, attributing to himself official capacity, shall be punished with imprisonment of one to three 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. Imprisonment of one to three years. Where the conduct consisted only in publicly attributing to oneself the quality of a public official or of a professional, without performing any act, article 403 on professional intrusion or the minor offence of usurping a title may apply instead, with materially lower penalties. Any offence committed by means of the false capacity, such as fraud, is punished separately.

Elements of the offence

  1. The performance of acts proper to a person in authority or a public official, that is acts reserved by law to the exercise of public authority.
  2. Attribution to oneself of official capacity, expressly or by conduct capable of creating that belief.
  3. Unlawfulness, meaning the absence of any appointment, delegation or authorisation covering the act.
  4. Intent to pass as an official. Confusion generated by the conduct of third parties, without any such intention, is outside the article.

Defence strategy

No act proper to public authority was performed. The offence requires an act reserved to authority: an identity check, an order backed by public power, a seizure, an inspection with legal effect. Presenting oneself as an official, wearing similar clothing or displaying an emblem, without performing such an act, does not satisfy the element and belongs at most to the minor offence of usurping a title. The defence identifies precisely which act is attributed and whether it produced any legal effect.

Absence of attribution of official capacity. The accused must attribute official capacity to himself. Where a third party assumed it, where the accused corrected the misunderstanding, or where he acted in a private capacity that others misread, the element fails. Recordings, messages and the accounts of those present establish what was actually said.

Existence of a title or authorisation. Security staff, municipal auxiliaries, inspectors of concessionaires and persons acting under delegation frequently perform functions that appear public. Where a contract, appointment or delegation covers the act, the conduct is lawful even if its limits were exceeded, and any excess is a matter for the administrative or employment sphere.

Concurrence with fraud. Where the false capacity was the instrument for obtaining money or property, the offence concurs with fraud under articles 248 to 250. The defence addresses the concurrence under article 77, since prosecutors habitually seek cumulative sentences for what was a single course of conduct, and restitution of the sums obtained bears on both.

Defence in this area

If you or your company are facing proceedings in this area, the firm provides defence and prosecution in Alicante and Madrid, with 24-hour assistance to detained persons.

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 402 of the Spanish Criminal Code provide for unlawful Exercise of Public Functions?

Imprisonment of one to three years. Where the conduct consisted only in publicly attributing to oneself the quality of a public official or of a professional, without performing any act, article 403 on professional intrusion or the minor offence of usurping a title may apply instead, with materially lower penalties. Any offence committed by means of the false capacity, such as fraud, is punished separately.

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

The performance of acts proper to a person in authority or a public official, that is acts reserved by law to the exercise of public authority. Attribution to oneself of official capacity, expressly or by conduct capable of creating that belief. Unlawfulness, meaning the absence of any appointment, delegation or authorisation covering the act. Intent to pass as an official. Confusion generated by the conduct of third parties, without any such intention, is outside the article.

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

No act proper to public authority was performed. The offence requires an act reserved to authority: an identity check, an order backed by public power, a seizure, an inspection with legal effect. Presenting oneself as an official, wearing similar clothing or displaying an emblem, without performing such an act, does not satisfy the element and belongs at most to the minor offence of usurping a title. The defence identifies precisely which act is attributed and whether it produced any legal effect. Absence of attribution of official capacity. The accused must attribute official capacity to himself. Where a third party assumed it, where the accused corrected the misunderstanding, or where he acted in a private capacity that others misread, the element fails. Recordings, messages and the accounts of those present establish what was actually said. Existence of a title or authorisation.

Is the English text of Article 402 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