Lawyers in Palma de Mallorca · Free first consultation

Criminal law guide

What are security measures in Spanish criminal law? Part I

Security measures (medidas de seguridad) are the Spanish Criminal Code's response to someone who has committed an offence and cannot be punished with a penalty, or not only with one, because they suffer from a mental disorder, a serious addiction or another condition affecting their criminal responsibility. They do not punish the act: they address the offender's dangerousness. This article explains their concept, basis, aims and requirements.

What security measures are in Spanish criminal law

Spanish criminal law responds to crime in two ways. A penalty (pena) is imposed on someone who is guilty and is measured by the seriousness of the act. A security measure is imposed on someone who is dangerous and is measured by that dangerousness. This is why it is called a twin-track system.

Security measures can be defined as preventive criminal-law means of combating crime, involving the deprivation or restriction of rights, which the criminal courts apply according to the criminal dangerousness of the individual, shown by committing an act defined by law as an offence. They are aimed at special prevention, that is, at ensuring that this particular person does not offend again, through correction, treatment or containment.

That definition gives them their defining features:

  • Special preventive nature: they look to the individual's future, not to censure for what has already been done.
  • Criminal dangerousness as the fundamental requirement.
  • Post-offence character: they can only be imposed after an offence, never before.
  • Judicial nature: they are imposed by the criminal courts.
  • Legality: only those provided for by law, and only in the cases the law lays down.

Security measure vs penalty: the key differences

PenaltySecurity measure
BasisThe offender's culpabilityCriminal dangerousness
Measured byThe seriousness of the actThe forecast of further offences, capped by the applicable penalty
DurationFixed, set in the judgmentMaximum set in the judgment; ends earlier if the dangerousness disappears
Typical subjectA person with full criminal responsibilityA person without, or with diminished, criminal responsibility

If you would like to know about the other track, see our article on penalties and their types.

Who security measures apply to in Spain

The Spanish Criminal Code (Código Penal, CP) reserves security measures for three groups of people:

  • People lacking criminal responsibility (inimputables), acquitted on the basis of a full exemption: a mental anomaly or disorder preventing them from understanding that the act was unlawful or from acting in accordance with that understanding (Article 20.1), full intoxication or withdrawal syndrome (Article 20.2), and perceptual impairments present since birth or childhood (Article 20.3). The measures in Articles 101 to 103 apply to them.
  • People with diminished responsibility (semiimputables), convicted with an incomplete exemption. They receive both a penalty and a measure (Article 104), served under the so-called vicarious system: first the measure, the time of which is deducted from the penalty (Article 99).
  • Dangerous people with full responsibility, only in the cases strictly laid down by law: supervised release (libertad vigilada) served after prison for sexual offences, terrorism and other expressly listed cases (Article 106).

The range of measures (committal to a psychiatric unit, an addiction treatment centre or a special educational centre, supervised release, family custody, disqualification from driving or holding weapons, professional disqualification and expulsion of foreign nationals without legal residence) and the rules on how they are carried out are covered in the second part of this article.

Have you been summoned or arrested?

What you do in the next few hours is decisive. Call us before making any statement.

The basis: criminal dangerousness (Article 6 of the Criminal Code)

The basis of security measures is the individual's criminal dangerousness. This is a forecast of the probability, or significant possibility, that they will commit offences in the future. Since every forecast is uncertain, the law backs it up with a requirement of legal certainty: the person must already have committed an act defined as an offence.

Both ideas appear in Article 6.1 of the Criminal Code, which bases security measures on the criminal dangerousness of the person on whom they are imposed, shown by the commission of an act defined as an offence.

Dangerousness is both the basis and a limit. In principle, the measure lasts as long as the dangerousness lasts. Article 97 recognises this by allowing the sentencing judge or court, while the measure is being carried out, to:

  • maintain the measure imposed;
  • order it to end as soon as the criminal dangerousness disappears;
  • replace it with a more suitable one;
  • suspend it, on condition that the person does not offend during the period set.

To that end, the prison supervision judge (juez de vigilancia penitenciaria) must submit, at least once a year, a proposal to maintain, end, replace or suspend the measure, with reports from the professionals treating the person subject to it (Article 98).

Aims of security measures: preventing reoffending

The aims of security measures are those of special prevention: preventing offences that the dangerous individual might commit in the future. That objective is pursued through three kinds of intervention:

  • Therapeutic, such as committal for medical treatment in a psychiatric facility or admission to an addiction treatment centre.
  • Corrective or educational, such as committal to a special educational centre.
  • Protective, such as supervised release, disqualification from holding weapons or expulsion from Spain.

Article 25.2 of the Spanish Constitution provides that custodial sentences and security measures shall be aimed at re-education and social reintegration and may not consist of forced labour.

Why they are legitimate: rule-of-law limits

The ultimate justification is protecting society from future offences by someone who has already committed one. But that principle on its own could support excessive intervention by the State. The legitimacy of the measures therefore comes from their being subject to the requirements of the rule of law:

  • legality (Articles 1.2 and 2.1 of the Criminal Code);
  • judicial imposition (Article 3);
  • criminal dangerousness (Article 6.1);
  • minimum intervention and proportionality (Article 6.2);
  • social reintegration and humanity (Article 25.2 of the Constitution).

The conclusion is that a security measure can only be applied to protect an overriding collective interest and only so long as it is not disproportionate to the seriousness of the act committed, to the acts the person can be expected to commit and to their degree of dangerousness.

Do you have a trial coming up?

We review your case without obligation and explain your real options.

Requirements for imposing a security measure in Spain

Safeguards: legality, final judgment and judicial control

Imposing measures is subject to a system of safeguards that runs parallel to that for penalties:

  • Criminal safeguard (Article 1.2): only where the conditions previously laid down by law are met.
  • Penal safeguard and non-retroactivity (Article 2.1): a measure not provided for by a law in force before the act cannot be applied.
  • Judicial safeguard (Article 3.1): only by virtue of a final judgment given by the competent judge or court.
  • Enforcement safeguard (Article 3.2): they are carried out in the manner prescribed by law and under judicial supervision.

Necessity and proportionality: never longer than the penalty

The principle of necessity, or minimum intervention, means that the measure is only appropriate if it is essential to achieve its preventive aim. Two requirements follow from this. The measure must be capable of neutralising the person's dangerousness. And it must be subsidiary: it is not imposed if less harmful non-criminal resources are enough (outpatient treatment in the public health system or civil support measures, for example), and among criminal measures, non-custodial ones are preferred where they can achieve the same objective.

The principle of proportionality, linked to the prohibition of excess, can be formulated in two ways. The first looks to the future: the measure must be proportionate to the offences the person can be expected to commit and to the degree of danger they represent. The second looks to the act committed, and it is the one chosen by the legislature in 1995, following the majority of legal scholars. Article 6.2 provides that measures may be neither more onerous nor longer than the penalty applicable in the abstract to the act committed, nor go beyond what is necessary to prevent the offender's dangerousness.

This provision is developed in two rules of great practical importance:

  • If the penalty that would have applied to the offence is non-custodial, only non-custodial measures may be imposed (Article 95.2).
  • Committal may not exceed the time the prison sentence would have lasted had the person been held criminally responsible, and the judgment must set that maximum (Articles 101 to 104). You can check the length of each in our article on custodial sentences.

The three requirements of Article 95 of the Criminal Code

Under Article 95, a measure requires three conditions to be met:

  1. The person is in one of the states provided for in Articles 101 onwards (lack of, or diminished, criminal responsibility, with the exceptions already mentioned).
  2. They have committed an act defined as an offence.
  3. From the act and their personal circumstances, a forecast of future behaviour can be inferred that shows a likelihood of further offences.

No prior offence, no security measure

This is the most important requirement. Legal scholars attribute a threefold safeguarding function to it:

  • It reinforces the forecast of dangerousness, because the person has already shown their capacity to offend.
  • It strengthens the principle of legality, by making the measure conditional on an act objectively described by law as an offence.
  • It keeps the preventive function within tolerable limits, acting as a brake on its unlimited expansion.

With this, the 1995 Criminal Code rejected pre-offence measures, which have a sad history in Spain: the Vagrancy Act of 1933 (Ley de vagos y maleantes) and the Social Dangerousness and Rehabilitation Act of 1970 (Ley de peligrosidad y rehabilitación social) allowed people to be deprived of their liberty because of their way of life, without having committed any offence, something incompatible with the 1978 Constitution.

An "act defined as an offence" must be understood as an act that fits the definition of an offence and is unlawful. No security measure can be imposed if the person acted under a justification such as self-defence (Article 20.4) or necessity (Article 20.5): someone who defends themselves against an unlawful attack has done nothing contrary to law, whether or not they suffer from a disorder.

How criminal dangerousness is proved

The third requirement is the forecast of future behaviour. It must concern the likely commission of further offences; the Code rightly abandoned the old notion of "social dangerousness", which demanded less.

The statutory wording is, nonetheless, imprecise. It does not say which factors must be assessed, such as the seriousness of the offences the person might commit, unlike other legal systems. Nor does the general reference to "such reports as the judge or court considers appropriate" help.

In any event, a measure is never imposed automatically. An exemption and an offence are not enough: dangerousness must be proved in the specific case, as the Supreme Court (Tribunal Supremo) requires. If the accused is stable, follows their treatment and has family support, there may be no basis for imposing any measure, or only for a non-custodial one.

Forensic reports and trial: how the measure is decided

The measure is imposed in a judgment, after a trial with the same safeguards as any other. Before there is a final judgment, there are no "interim" security measures as such: during the investigation only ordinary interim measures are available and, if the person needs hospital admission, the health and civil-law routes provided for that purpose.

The decisive evidence is expert evidence. The forensic doctors of the Institute of Legal Medicine (Instituto de Medicina Legal) take part, and the defence can submit a report from a psychiatrist or psychologist of its choice. Two different questions must be answered, and they should not be confused:

  • What state the accused's faculties were in at the time of the events (this determines the exemption, full or incomplete).
  • What their prognosis is today and what treatment they need (this determines the measure).

Previous medical records, earlier hospital admissions, reports from the community mental health unit or the addiction treatment centre and the family's evidence are what give the expert evidence its weight. Where the person was treated abroad, those records should be obtained and translated as early as possible.

The strategy must be weighed carefully. An acquittal on the basis of a full exemption does not necessarily mean freedom: it may be followed by long-term committal. For offences carrying short sentences, a conviction with a mitigating factor and a sentence suspended on condition of treatment may prove less onerous than committal. That decision belongs to the accused and their family, with all the information in front of them.

Security measures in Mallorca and the Balearics: where they are served

In the Balearic Islands these cases are tried before the Criminal Courts (Juzgados de lo Penal) or the Provincial Court (Audiencia Provincial) in Palma, depending on the penalty for the offence, and the measure is monitored by the prison supervision court and the sentencing court.

The practical difficulty lies in where psychiatric committal is served. The prison administration has only two prison psychiatric hospitals, in Alicante and Seville, so committal to one of them takes the patient far from their family and their island. That is why it is so important to propose to the court, with supporting reports, alternatives within the islands' health or social care network, or non-custodial measures such as outpatient treatment and family custody.

What our criminal lawyer in Palma does in these cases

At Castell Abogados, a Palma firm working mainly in criminal law, we handle proceedings in which the accused suffers from a mental disorder or a serious addiction. Our work as criminal lawyers in Palma de Mallorca consists of:

  • Gathering medical records from the moment of arrest and immediately requesting a forensic examination.
  • Proposing psychiatric or psychological expert evidence and preparing the expert to confirm it at trial.
  • Challenging whether dangerousness exists and asking for the least onerous measure, with a specific treatment plan.
  • Making sure the judgment sets the maximum period and that Article 6.2 is respected.
  • Applying, at each annual review, for the measure to be ended, replaced or suspended, as part of our prison law practice.

We see families in Palma and by video call from Menorca, Ibiza and Formentera, and we work in English and German as well as Spanish and Catalan. The first consultation is free.

Shall we talk about your case?

Free first consultation without obligation, in Palma or by video call.

Frequently asked questions

What is the difference between a penalty and a security measure?

A penalty is imposed on someone who is guilty of an offence and its length depends on how serious the act was. A security measure is imposed on someone who, because of a mental disorder, an addiction or another cause, is not fully responsible, and it is based on the risk that they will offend again. The measure can end before its maximum period if that risk disappears; a penalty cannot.

Can a security measure be imposed without a prior offence?

No. The 1995 Criminal Code always requires the prior commission of an act defined as an offence, proved at trial. The pre-offence measures of the old vagrancy and social dangerousness laws disappeared because they were contrary to the Constitution. The admission to hospital of a person with a mental illness who has not offended is a civil and health matter, not a criminal one.

How long can psychiatric committal ordered by a Spanish court last?

At most, the time the prison sentence would have lasted had the accused been held responsible. The judgment must set that ceiling. Within it, the actual length depends on progress: the prison supervision judge makes a proposal at least once a year, and the court may order the measure to end, to be replaced by a less onerous one or to be suspended.

If my relative is acquitted due to mental illness, will they be released?

Not necessarily. An acquittal on the basis of a full exemption rules out a penalty, but the court can impose a security measure if it finds criminal dangerousness: committal, outpatient treatment, family custody or others. If the offence did not carry a custodial sentence, committal is not possible. The key is to prove that the person is receiving treatment and has support, so that the measure is the least restrictive one.

What happens if someone breaches a security measure in Spain?

If the person escapes from committal, the judge orders their readmission to the same centre or another suited to their condition. If a non-custodial measure is not complied with, it may be replaced by committal where this is provided for and necessary. Repeated or serious failure to comply may also lead to proceedings for breach. Refusing to follow medical treatment is not in itself considered a breach.

You may also be interested in