Criminal law

Stalking in Spain: When Does Harassment Become a Crime?

By the AbogadoAI editorial team · Updated 18 July 2026 · 12 min read

🇪🇸 Read the original in Spanish

Feeling watched, receiving constant phone calls in the early hours of the morning, or "coincidentally" bumping into the same person at the supermarket, at work, and at your front door is not a simple nuisance—it is a conduct that can constitute a serious crime in Spain. Obsessive harassment, internationally known as stalking, destroys the peace of mind and freedom of those who suffer from it, forcing them to change their habits, phone numbers, or even their homes. In this article, we analyze in depth when persistent harassment crosses the line of the intolerable to become a codified crime under the Spanish Penal Code, how to identify it, what evidence is needed to report it, and how to protect yourself legally.

What is the Crime of Harassment or Stalking in the Penal Code?

The crime of harassment, often referred to by legal doctrine and case law as stalking (an Anglo-Saxon term evoking the act of stalking prey), was introduced into the Spanish legal system through the reform of the Penal Code in 2015. It is regulated under *Article 172 ter of the Código Penal (Penal Code)* (Organic Law 10/1995, of November 23).

The legally protected interest in this crime is the individual's freedom of action, as well as their right to safety and peace of mind in the development of their daily life. The law does not punish mere annoyance or a one-off disagreement, but rather a systematic conduct that restricts the victim's decision-making capacity, forcing them to alter their normal behavior to evade the stalker.

The Objective Requirements for the Crime to Exist

For the Spanish justice system to determine that certain events constitute a crime of stalking under Article 172 ter, the following elements must cumulatively apply:

  1. Insistence and repetition: The conduct cannot be isolated. It must be a pattern of behavior repeated over time.
  2. Lack of consent: The victim must not have authorized, consented to, or encouraged the contact. In fact, there must be an implicit or explicit opposition to the continuation of said conduct.
  3. Severe disruption of daily life: This is the key element of this criminal classification. The harassment must be serious enough to force the victim to modify their daily habits (changing their route to work, altering schedules, stopping the use of social media, changing their phone number, or, in extreme cases, moving house or changing jobs).
  4. Absence of legitimate grounds: The active subject (the stalker) must not have a legitimate justification for carrying out such acts (for example, the repeated and legitimate demand of a debt through authorized judicial or mediation channels would not be harassment, although it could be if it exceeds the limits of legality).

Typical Harassment Conducts

Article 172 ter of the Penal Code details in a numbered list the specific behaviors which, if carried out repeatedly and insistently, give rise to the crime of stalking:

1. Surveillance, pursuit, or seeking physical proximity

This consists of following the victim on the street, waiting for them at the door of their home, their workplace, or places they frequent for leisure. It also includes remote observation using binoculars, GPS tracking devices, or unauthorized surveillance cameras.

2. Establishing or attempting to establish contact

This covers any attempt to communicate with the victim, either directly or through third parties. It includes the use of any means of communication or voice reproduction (telephone calls, text messages, WhatsApp, emails, physical letters, or constant interactions on social networks such as Instagram, TikTok, or Facebook).

3. Misuse of personal data (identity theft and exposure)

This scenario occurs when the stalker uses the victim's personal data to purchase products or contract services in their name, or to publish false advertisements on the internet (for example, offering sexual services using the victim's phone number), causing unrelated third parties to start contacting her in a massive and annoying manner.

4. Attacks on their freedom or property (or that of close associates)

This refers to acts of harassment directed at people close to the victim (children, direct relatives, a new partner) or direct attacks on their property (scratching their car, damaging their mailbox, leaving threatening notes on their property).

Penalties, Fines, and Aggravating Circumstances in the Penal Code

The Spanish Penal Code provides for different levels of severity for the crime of stalking, depending on the relationship between the aggressor and the victim, as well as the vulnerability of the latter.

If the stalker also violates a restraining order or a prior precautionary measure imposed by a judge, they will concurrently commit a crime of breach of sentence or precautionary measure (regulated in Article 468 of the Penal Code), which will significantly increase the severity of the final penalty.

Practical and Real Examples of Stalking

To better understand how these rules are applied in the judicial practice of Spanish courts, we analyze two common scenarios:

Example 1: Harassment after a relationship breakup

Example 2: Neighborhood harassment or obsession without a prior relationship

Step-by-Step Practical Guide: How to Act and Report Harassment

If you are suffering from a stalking situation, it is essential that you act methodically to build a solid criminal case. Follow these steps recommended by criminal defense lawyers:

  1. Express your rejection unequivocally (only once): Send a clear, concise message that leaves a written record (for example, via SMS, WhatsApp, or email) indicating to the stalker that you do not want any contact and that, if they persist, you will take legal action. From that moment on, never reply again. Responding, even to insult or ask them to stop, weakens the proof of lack of consent and can be interpreted as a dynamic of mutual conflict.
  2. Collect and preserve digital evidence: Do not delete any messages, emails, call history, or social media posts. Take full screenshots showing the sender's phone number, date, and time. For this evidence to have full validity in a trial and to prevent claims that it has been manipulated, it is highly recommended to digitally certify it through content certification platforms (such as Safe Stamper or eEvidence) or through a acta notarial (notarial certificate).
  3. Keep a detailed diary of incidents: Write down every day you suffer an episode of harassment. Record the date, exact time, location, what the stalker did, and if there were any eyewitnesses (neighbors, co-workers, passersby).
  4. Obtain medical and psychological reports: See your GP (general practitioner) or a psychologist if the harassment is causing you anxiety, insomnia, panic attacks, or depression. Official medical reports are fundamental evidence to prove to the judge the "severe disruption of daily life" and the damage to psychological health.
  5. File a formal complaint: You can file the denuncia (complaint) with the National Police (Policía Nacional), the Civil Guard (Guardia Civil), the regional police (such as Mossos d'Esquadra or Ertzaintza), or directly at the Juzgado de Guardia (Duty Court). Accompany the complaint with all the documentary evidence you collected in steps 2 and 4.
  6. Request precautionary protection measures: At the very moment of filing the complaint, or during your first court appearance, request an orden de protección (protection order) that includes a prohibition of approach (restraining order) to a minimum distance (for example, 500 meters) and a prohibition of communication by any physical or digital means.

Errors You Must Avoid in a Harassment Situation

Making certain mistakes during the harassment process can make it difficult to secure a subsequent conviction of the stalker or weaken the credibility of the complaint before the investigating judge:

Frequently Asked Questions (FAQ)

How many calls or messages are needed for it to be considered a harassment crime?

Spanish law does not establish an exact number of calls or messages. The criterion of the Tribunal Supremo (Supreme Court) focuses on the insistence, the prolongation over time, and the capacity of the conduct to severely alter the victim's life. However, case law usually considers that sending dozens of messages over several consecutive days, or repeated calls over weeks, more than meets the requirement of repetition.

Can I report a neighbor who constantly makes noise for harassment?

Generally, annoying noise from neighbors is handled through civil channels (injunction lawsuit for annoying activities) or administrative channels (municipal noise ordinances). However, if the neighbor makes annoying noises deliberately, insistently, and with the sole intention of disturbing your rest, monitoring your movements, and harassing you directly so that you leave the property, it could indeed fall under the crime of coercion or harassment under Article 172 ter.

What happens if the stalker uses fake profiles on social media?

This is a very common tactic in cyberstalking. Even if the stalker uses fake or anonymous profiles, the Judicial Police (through technological crime units) have the ability to request court warrants to require telephone operators and technology platforms (Meta, Google, etc.) to provide the connecting IP addresses, thereby identifying the physical device and the line from which the harassment is carried out.

Can I record the stalker on the street to have evidence?

Yes, in Spain it is perfectly legal to record conversations or take images on public roads as long as you are an active party in the interaction or the direct victim of the conduct you are documenting. These recordings do not violate the stalker's right to privacy if they are presented exclusively as evidence in a judicial proceeding and are not publicly disseminated on the internet.

How much does a court case for the crime of harassment cost?

If you decide to appear with your own lawyer and procurador (court representative) as a acusación particular to request specific penalties and compensation, the cost can range between €1,200 and €3,000, depending on the complexity of the case and the professional's fees. However, if you do not have financial resources, you can apply for free legal aid (justicia gratuita). Furthermore, in cases of gender-based violence, legal advice and court defense are completely free of charge for the victim.

Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.