# Driving bans, restraining orders and other rights penalties in Spain

> Driving bans in Spain, firearms bans, loss of parental authority, restraining orders and community service: length and effects. Criminal lawyer in Palma.

- URL: https://www.carloscastell.com/en/driving-bans-restraining-orders-penalties-spain/
- Castell Abogados, C/ General Riera, 1, 3º D, 07003 Palma (Illes Balears)
- Phone: 684 450 450 (WhatsApp) · Email: contacto@castellabogados.com
- 2026-12-03

Besides disqualifications, the Spanish Criminal Code provides for other penalties that neither imprison nor fine, but take away a specific right: driving, holding weapons, exercising parental authority, living in or going to a place, approaching or contacting the victim. In this third article in our series on types of penalty, we explain how long they last, what effects they have and the problems that arise in serving them.

- Driving ban and firearms ban: from 3 months to 10 years; if it exceeds 2 years, the licence or permit loses its validity.
- Ban on approaching or contacting the victim: from 1 month to 10 years; in gender-based and domestic violence it is mandatory.
- Loss of parental authority removes the right itself, not just its exercise.
- These penalties must be served even if the prison sentence is suspended, and breaching them is an offence of breach of sentence (Art. 468 of the Criminal Code).
- The victim's consent does not authorise you to breach a restraining order.

## Penalties depriving rights in the Spanish Criminal Code

Article 39 of the Criminal Code (Código Penal, CP) lists the penalties that deprive the offender of rights (penas privativas de derechos). In the previous article we looked at [disqualifications and suspension from public employment or office](https://www.carloscastell.com/en/disqualification-penalties-spain/). Here we cover the rest: loss of parental authority, disqualification from driving motor vehicles and mopeds, loss of the right to hold and carry weapons, a ban on living in or going to certain places, a ban on approaching the victim, a ban on contacting them, and community service. For an overview, see our introduction to [penalties and their types](https://www.carloscastell.com/en/types-of-criminal-penalties-spain/).

Depending on its length, each of these may be a serious, less serious or minor penalty (Art. 33 CP), which affects the procedure, the limitation period and the expunging of the criminal record.

| Penalty | General length (Art. 40 CP) | Minor | Serious |

| Driving ban | 3 months to 10 years | 3 months to 1 year | More than 8 years |

| Ban on holding and carrying weapons | 3 months to 10 years | 3 months to 1 year | More than 8 years |

| Ban on living in or going to certain places | Up to 10 years | Less than 6 months | More than 5 years |

| Ban on approaching or contacting | 1 month to 10 years | 1 month to less than 6 months | More than 5 years |

| Community service | 1 day to 1 year | 1 to 30 days | None |

## Loss of parental authority as a criminal penalty

The penalty of loss of parental authority (privación de la patria potestad) was introduced by Organic Law 5/2010 and exists alongside special disqualification from exercising parental authority, guardianship, curatorship, custody or foster care. The difference is important:

- With special disqualification, the offender is deprived of the rights inherent in parental authority for the duration of the sentence, but remains its holder.

- With loss, they cease to hold it (Art. 46 CP). Even so, the child's rights in relation to the convicted parent survive, such as maintenance or inheritance rights.

The judge may order it in respect of all or only some of the children. It is provided for mainly in sexual offences against minors and, since Organic Law 8/2021, in homicides and murders where the offender and victim had children in common or the victim was the offender's child. Since Law 8/2021, which abolished guardianship of adults with disabilities, the Criminal Code's references to curatorship and custody must be read in line with the new system of support measures.

## Driving bans in Spain: length and getting your licence back

Its basis is the danger involved in using the vehicle to commit the offence, whether or not any harm resulted. It is a main penalty both for endangerment offences and for offences causing harm:

- Driving under the influence of alcohol or drugs, or speeding (Art. 379 CP): a ban of more than 1 year and up to 4 years. More information on our page on [drink driving offences](https://www.carloscastell.com/en/drink-driving-lawyer-mallorca/).

- Refusing to take the tests (Art. 383 CP) and reckless driving (Art. 380 CP).

- Negligent homicide and injury committed with a motor vehicle or moped (Arts. 142 and 152 CP).

Regardless of the vehicle used to commit the offence, the penalty removes the right to drive both motor vehicles and mopeds for the whole of the sentence, and it is imposed even if the offender had no licence. If the ban exceeds two years, the licence loses its validity (Art. 47 CP): when the sentence ends, it must be obtained again by passing the courses and tests required by traffic regulations. If it is two years or less, the licence is recovered when the penalty ends, but to drive again you must show that you have passed the road re-education and awareness course (Art. 73.2 of the Traffic Act).

In practice, it is advisable to hand in the licence at the court as soon as the judgment becomes final, because the penalty starts to run from that moment. In Mallorca, where many jobs depend on the car, it is common to negotiate the length of this penalty in a plea agreement or, where possible, when it starts. A Spanish driving ban also prevents driving in Spain on a foreign licence, which surprises many visitors and foreign residents.

## Firearms bans: hunters, sport shooters and security guards

The basis is the danger revealed by having committed an offence with a weapon or in a violent context: negligent injury or homicide with a firearm, domestic abuse (Art. 153 CP) or threats. In gender-based and domestic violence offences this penalty is almost always imposed, even if no weapon was used.

The ban covers both the right to hold weapons and the right to carry them, whether or not there was a licence at the time of the offence. It extends to regulated weapons: hunting and sport-shooting firearms, non-prohibited bladed weapons and others subject to authorisation under the Weapons Regulations (Reglamento de Armas). If the penalty exceeds two years, the licence loses its validity. For hunters, sport shooters and security guards, this penalty can have serious employment consequences, and it should be taken into account before accepting any agreement.

## Ban on living in or visiting certain places (Art. 48.1 CP)

This prevents the offender from living in or going to the place where the offence was committed, or the place where the victim or their family live, if different (Art. 48.1 CP). It limits the fundamental right to freedom of movement (Art. 19 of the Spanish Constitution) and is justified by the need to protect the victim and those close to them against the risk of the offence being repeated.

The judgment must specify the places, usually towns or municipalities. On an island this has very practical consequences: banning a person from going to a small municipality in Menorca, or to Formentera, may prevent them from working or visiting their family, and the defence must point this out so that the measure is proportionate.

It is not a main penalty but an accessory one, which the judge imposes together with the penalty for the offence in the cases listed in Art. 57 CP: homicide, abortion, injury, offences against freedom, torture, offences against moral integrity, trafficking, sexual freedom, privacy, honour, property and the socio-economic order. If imposed together with prison, both are served at the same time, and the accessory penalty lasts between one and ten years longer than the prison sentence if the offence is serious, or between one and five years longer if it is less serious. This ensures that protection remains in place when the offender begins to enjoy prison leave or parole.

## Restraining orders as a penalty: no approach and no contact

This is the penalty commonly known as a [restraining order](https://www.carloscastell.com/en/restraining-order-lawyer-mallorca/) (orden de alejamiento, Art. 48.2 and 48.3 CP). It takes several forms, all or only some of which the judge may order:

- Ban on approaching the victim, their relatives or other persons designated by the judge, wherever they may be, and their home, workplace or other places they frequent. The judgment sets a minimum distance, usually in metres.

- Ban on communicating by any means: phone, messaging, social media, post, in writing, verbally or visually, and also through third parties.

- Suspension of contact arrangements (visits, communication and stays) with the children in common, if any were recognised in a civil judgment, for as long as the ban on approaching lasts.

If the offender has a recognised intellectual disability or one resulting from a mental disorder, the judge must examine the case to balance the victim's protection with the interests of the person with the disability, and may order support measures to help them comply.

Compliance can be monitored with electronic devices, the well-known tags, which raise the alarm if the offender enters the prohibited zone. These are used above all in gender-based violence cases, where effective monitoring of compliance is especially important.

As a general rule it is a discretionary accessory penalty. But for offences against the persons listed in Art. 173.2 CP (spouse or former partner, children, parents, siblings and other members of the household or vulnerable persons), the ban on approaching is mandatory (Art. 57.2 CP), and the judge cannot dispense with it even if the victim does not want it.

### Is it a breach if the victim is the one seeking contact?

For years this was one of the most debated questions. Some Provincial Courts held that, if the victim approached voluntarily or the couple resumed living together, protection was no longer necessary and there was no breach; others held the opposite. The Supreme Court (Tribunal Supremo) settled the point in 2008: the victim's consent does not rule out the offence of [breach of sentence](https://www.carloscastell.com/en/breach-restraining-order-sentence-mallorca/). The person convicted must comply with the ban even if the protected person calls or visits them.

If the couple have decided to resume the relationship, the legal options are limited: applying for a partial pardon of that penalty or, where appropriate, asking for the situation to be taken into account when the court decides on suspension or enforcement. What is not possible is to breach the ban in the hope that consent will justify it.

## Community service in Spain: consent and working hours

This consists of unpaid work of public benefit, for example with local authorities, associations or programmes to repair the harm, workshops or training (Art. 49 CP). Its essential feature is that it cannot be imposed without the offender's consent, because the Spanish Constitution prohibits forced labour. Each working day cannot exceed eight hours.

It is an alternative main penalty for many minor and less serious offences (domestic abuse under Art. 153, drink driving, among others) and may replace personal liability for non-payment of a fine (Art. 53 CP). It is organised by the Prison Service's units managing alternative penalties and measures, which propose a plan to the judge. If the offender fails to turn up, abandons the work or performs far below what is required, the judge may refer the matter for prosecution for breach of sentence.

## What our criminal lawyer in Palma does about these penalties

These penalties are often overlooked next to prison, but they are frequently the ones that most affect daily life: the job that requires driving, the hunting licence, the relationship with the children or the village where one lives. At Castell Abogados we take them into account from the very first statement:

- We analyse which rights-depriving penalties are being sought and what administrative and family effects they will have.

- In plea agreements, we negotiate their length, geographical scope and compatibility with work.

- During enforcement, we calculate the end date, deal with handing in the licence and, where appropriate, a partial pardon.

- We defend people accused of breaching these penalties and victims who need them to be enforced.

If you are interested in the rest of the series, see our article on [custodial sentences](https://www.carloscastell.com/en/prison-sentences-spain/). We work in English, German, Spanish and Catalan.

## Frequently asked questions

### If my prison sentence is suspended, is my driving ban suspended too?

No. Suspension under Art. 80 CP only covers custodial penalties. A driving ban, a weapons ban or a restraining order must still be served from the moment the judgment becomes final, even if the prison sentence is suspended.

### Can I drive on a foreign licence if I am banned from driving in Spain?

No. The penalty removes the right to drive in Spain with any licence, Spanish or foreign. Driving during the ban is an offence under Art. 384 CP, punishable with 3 to 6 months in prison, a fine or community service.

### Can I see my ex-partner if she wants to meet and I have a restraining order?

No. Her consent does not authorise you: if you approach or contact her, you commit a breach of sentence. If you both want to resume contact, ask your lawyer about the proper route, such as a partial pardon, before taking any step.

### Can a court in Spain force me to do community service?

No. It requires your consent. If you do not give it, the judge must impose another of the penalties provided for the offence, usually prison or a fine. That is why it is worth considering with your lawyer, before trial, which alternative is least harmful to you.

### Does losing parental authority mean I no longer have to pay maintenance for my children?

No. Even if you lose parental authority, your child's rights against you survive, such as the right to maintenance. The penalty removes your powers over the child, not your obligations towards them.

