Skip to content
AS
Alonso Sala
CRIMINAL LAWYERS
ES
Legal Analysis

Deportation Instead of Prison in Spain: How Article 89 CP Works

calendar_todayJune 12, 2026

Last updated:

Quick answer

Article 89 of the Spanish Criminal Code (CP) provides that prison sentences of more than one year imposed on a foreign national are replaced by deportation (expulsión) from Spanish territory, with a re-entry ban of 5 to 10 years. Deportation is excluded where it would be disproportionate given the person's ties to Spain (arraigo), and sentences of one year or less fall outside this regime: they can be suspended like any other sentence.

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

For many foreign nationals convicted in Spain — and for their families abroad — the sentence itself is only half the story. The other half is a question that Spanish law answers in a way that surprises most people: can prison be replaced by deportation? The answer lies in Article 89 of the Spanish Criminal Code (CP), which governs the so-called expulsión sustitutiva (substitution of imprisonment by removal): prison sentences of more than one year imposed on foreign nationals are, as a rule, replaced by deportation from Spanish territory. This guide explains in plain terms when it applies, how ties to Spain can prevent it, how long the re-entry ban lasts, and what happens with shorter sentences.

What 'substituted deportation' under Article 89 CP Is

Substituted deportation is not an additional punishment but a form of serving the sentence: instead of going to prison (or serving the whole term), the convicted foreign national is removed from Spain and banned from returning for a set period. It is ordered by a criminal judge or court, not by the immigration authorities, and it should not be confused with administrative deportation, which immigration law handles through different procedures and safeguards.

Article 89.3 CP fixes the moment of the decision: the court rules in the judgment itself whenever possible; otherwise, once the conviction is final, it must decide as a matter of urgency after hearing the prosecutor and the parties. This means there is always a procedural stage at which the defence can — and must — argue and prove the offender's personal circumstances.

When It Applies: Prison Sentences of More Than One Year

The general rule in Article 89.1 CP is blunt: prison sentences of more than one year imposed on a foreign citizen shall be replaced by their removal from Spanish territory. Three important clarifications:

  • Prison sentences only: the provision covers imprisonment, not fines or other penalties. And the sentence must exceed one year: a sentence of exactly twelve months falls outside it.
  • Exceptional partial service: the court may order that part of the sentence — never more than two thirds of its length — be served in Spain where necessary to uphold the legal order and restore confidence in the rule breached, with the remainder replaced by deportation.
  • Open prison and parole: in any event, the remainder of the sentence is replaced by deportation once the offender is granted tercer grado (open prison regime) or conditional release (parole).

The rule sounds automatic, but in practice it is not: the settled case law of the Spanish Supreme Court requires an individual assessment and express reasoning, especially where the offender invokes ties to Spain. That is why the hearing stage is decisive.

Sentences Over Five Years: Prison First, Deportation Later

Where the sentence exceeds five years' imprisonment — or several sentences add up to more than that — Article 89.2 CP changes the scheme: the court orders all or part of the sentence to be served, to the extent necessary to uphold the legal order. Once the portion fixed by the court has been served, or when the offender reaches open prison or parole, the rest of the sentence is replaced by deportation. In serious cases, in other words, deportation does not avoid prison: it follows it.

'Arraigo' as the Exception: When Deportation Is Disproportionate

The system's main safety valve is Article 89.4 CP: substitution does not apply where, in view of the circumstances of the offence and of the offender — in particular their roots in Spain (arraigo) — deportation would be disproportionate. What do courts treat as arraigo?

  • Long-term lawful residence in Spain with a stable life project.
  • Family: a spouse or partner, minor children in school, dependent relatives in their care.
  • Work and means of support: an employment contract, social security contributions, a business of their own.
  • Housing and social ties: a stable home and documented integration in the community.

None of this operates automatically or is presumed: the defence must prove it with documents (municipal registration certificates, family records, school enrolment, employment history, contracts) and weigh it against the seriousness of the offence. For EU citizens the regime is even stricter: deportation is possible only where they represent a serious threat to public order or public security; and after ten years' residence in Spain, only in narrowly defined cases (certain serious offences against life, liberty, physical integrity or sexual freedom with a well-founded risk of reoffending, and terrorism or organised crime).

The Re-Entry Ban: 5 to 10 Years

Substituted deportation carries a ban on returning to Spain of between 5 and 10 years, counted from the date of removal, depending on the length of the substituted sentence and the offender's personal circumstances (Article 89.5 CP). Its effects reach beyond the border:

  • Pending applications closed: deportation entails the closure of any administrative procedure seeking a residence or work permit in Spain (Article 89.6 CP).
  • Early return: a deportee who returns before the ban expires must serve the substituted prison sentence, unless the judge exceptionally reduces it because serving it is no longer necessary (Article 89.7 CP).
  • Caught at the border: in that case the administrative authority removes the person directly and the re-entry ban starts running again from zero, in full.

To secure removal, Article 89.8 CP allows the offender to be placed in an immigration detention centre (CIE), subject to the limits and safeguards of administrative deportation. And if removal ultimately cannot be carried out — for instance, for lack of travel documents or a viable return — the original sentence, or the portion still pending, is enforced or, where applicable, suspended.

What Happens With Sentences of One Year or Less

Prison sentences of up to one year fall outside Article 89 CP: they are not replaced by criminal-law deportation. They are served or — most commonly for first offenders — suspended under the general rules of Article 80 CP, which allows custodial sentences of up to two years to be suspended where it is reasonable to expect that enforcement is not needed to prevent further offending. For a foreign national sentenced to six or eight months, this is normally the defence's main line of work.

Two caveats that families should know. First: even if the criminal court does not order deportation, Spanish immigration law allows the administrative authorities to review the situation of a foreign resident with a criminal record, so the case should also be assessed from that angle. Second: a criminal record affects residence permit renewals and citizenship applications; once the sentence has been served or remitted, it is worth applying as early as possible for the expungement of the criminal record (cancelación de antecedentes penales).

Excluded Offences and How the Defence Is Built

Article 89.9 CP expressly excludes from substitution the sentences imposed for human trafficking (Article 177 bis CP), the offences against workers' rights in Articles 312 and 313 CP, and the smuggling of migrants under Article 318 bis CP: in those cases the sentence is served in any event.

In all other cases, the defence can move in two opposite directions, depending on what the client actually wants. Some convicted foreign nationals have their whole life in Spain and need to avoid deportation: there we work to document their roots and the disproportion of the measure. Others have no ties to Spain and would rather be deported than imprisoned: there the work consists of seeking full substitution and opposing any partial service of the sentence. In both scenarios, timing matters (the judgment itself or the post-conviction hearing), as do documentary evidence and, where appropriate, appeals. As criminal defence lawyers in Spain, we study each case individually and work to steer the enforcement of the sentence towards the least damaging outcome for the client and their family — from the first police-station call through to trial and enforcement. Where the case has a cross-border element, see also our extradition practice.

⚖️ A Foreign National Convicted or Awaiting Sentencing in Spain?

We assess whether Article 89 CP deportation applies, prepare the evidence of ties to Spain and explain your options in English. A firm dedicated exclusively to criminal law, at Velázquez 27, Madrid.

→ Contact the firm

📞 +34 91 078 65 74

Frequently asked questions

Can I be deported if my prison sentence is one year or less?expand_more

Not under Article 89 CP, which only applies to prison sentences of more than one year; a sentence of exactly one year falls outside it. Those sentences are served or suspended under the general rules (suspension under Article 80 CP is available for custodial sentences of up to two years). Immigration law is a separate track: the Spanish authorities may review the situation of a foreign resident with a criminal record through administrative channels, so each case should also be checked from that angle.

What counts as 'arraigo' (ties to Spain) to avoid deportation?expand_more

Article 89.4 CP excludes deportation where, given the circumstances of the offence and of the offender — in particular their roots in Spain — it would be disproportionate. In practice, courts weigh long-term lawful residence, family (a spouse or partner, children in school), stable work and means of support, housing and social integration. It is not presumed: the defence must prove it with documents before the judge or court.

How long is the ban on returning to Spain?expand_more

Between 5 and 10 years from the date of removal, depending on the length of the substituted sentence and the offender's personal circumstances (Article 89.5 CP). Deportation also entails the closure of any pending administrative application for a residence or work permit in Spain.

Does Article 89 CP apply to EU citizens?expand_more

Only very restrictively: under Article 89.4 CP, an EU citizen may be deported only where they represent a serious threat to public order or public security, in view of the nature, circumstances and gravity of the offence, their record and their personal circumstances. After ten years' residence in Spain, deportation is limited to narrowly defined cases: certain serious offences against life, liberty, physical integrity or sexual freedom with a well-founded risk of reoffending, and terrorism or offences committed within a criminal group or organisation.

What happens if I return to Spain before the ban expires?expand_more

As a rule, you must serve the prison sentence that was replaced by deportation; only exceptionally may the judge reduce it where serving it is no longer necessary (Article 89.7 CP). If the person is caught at the border, the administrative authority removes them directly and the re-entry ban starts running again in full.

flight_takeoff

gavelDo you need criminal defense in this area?

We are criminal defense lawyers specializing in substitutive expulsion (art. 89 cp). We act urgently to protect your rights.

View expertisearrow_forward

Related Articles

View allarrow_forward

Knowledge is power, but strategy is key.

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

call