Skip to content
Legal Analysis

What Happens After an Arrest in Spain: From the Police Station to Court

27 February 2026Updated: 

Key Takeaways

  • Police custody: only the time strictly necessary and 72 hours at most (Article 17.2 of the Constitution and Article 520.1 LECrim)
  • Lawyer at the police station: must attend within 3 hours of the instruction (Article 520.5 LECrim)
  • Habeas corpus: the judge rules within twenty-four hours of opening the proceedings (Organic Law 6/1984)
  • Article 505 LECrim hearing: within the 72 hours following the handover to the judge
  • Prolonging custody beyond the limit: special disqualification of 4 to 8 years for the official (Article 530 CP)

The police may hold you only for the time strictly necessary for their enquiries and, at most, 72 hours; they must then release you or bring you before a judge (Article 17.2 of the Constitution and Article 520.1 LECrim). In custody you are entitled to a lawyer, to remain silent and to have a relative informed. The duty judge then decides on release, with or without measures, or pre-trial detention.

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

An arrest starts a clock: Spanish law sets out what must happen, and by when, from the moment an officer deprives you of your liberty until a judge decides your situation. This guide follows that order: how long you can be held at the police station, what rights you have at each stage and what the duty judge can decide. The main rules are in the Spanish Constitution and in the Criminal Procedure Act (Ley de Enjuiciamiento Criminal, LECrim).

You have been arrested: what happens next, step by step

No one may be arrested except in the cases and in the manner laid down by law (Article 489 LECrim). Any person may make an arrest in the situations listed in Article 490 LECrim, such as that of an offender caught in the act, and for a minor offence (delito leve) an arrest is only possible if the suspect has no known address and does not provide sufficient security (Article 495 LECrim). From the arrest onwards, the process follows this order:

StageWhat happensTime limit and legal basis
The arrestYou are told about the facts, the reasons for the arrest and your rights, in writing and in a language you understandImmediately (Article 17.3 of the Constitution; Article 520.2 LECrim)
Arrival at the police stationPolice record (reseña); notice to the person you choose (and to your consulate, if you are a foreign national); medical examination if you ask for itWithout undue delay (Article 520.2 LECrim)
The lawyerComes to the police station and may speak to you in private before any statementWithin 3 hours of receiving the instruction (Article 520.5 LECrim)
The police statementYou give a statement, answer only some questions or remain silent, with your lawyer presentDuring custody (Articles 520.2 and 520.6 LECrim)
End of police custodyRelease or handover to the judgeOnly the time strictly necessary and never more than 72 hours (Article 17.2 of the Constitution; Article 520.1 LECrim)
The court duty serviceStatement before the judge as an investigated person and, if detention or bail is sought, the Article 505 hearingAs soon as possible within the 72 hours following the handover to the judge (Article 505.2 LECrim)
The judge’s decisionRelease without measures, release with precautionary measures or pre-trial detentionAfter hearing the parties (Article 505.4 LECrim)

Each stage has its own limit, and none of them allows the authorities to wait without a reason.

How long can the police hold you at the station?

The limit is set by the Constitution: police custody may last no longer than the time strictly necessary for the enquiries aimed at establishing the facts and, in any event, within a maximum of seventy-two hours the detainee must be released or placed at the disposal of the judicial authority (Article 17.2 of the Spanish Constitution). Article 520.1 LECrim repeats the rule in the same terms. Three practical consequences follow:

  • The 72 hours are a ceiling, not the normal length. If the police enquiries finish earlier, the police must release you or take you before the judge at that point, even if the period has not run out.
  • The clock starts with the arrest, not with your arrival at the station. That is why the police report (atestado) must record the place and time of the arrest and those of the handover to the judge or of the release (Article 520.1 LECrim): it is the information your lawyer uses to check whether the limit has been respected.
  • You are entitled to know the time limit. When your rights are read to you, you must be told the maximum legal duration of the detention and the procedure for challenging it (Article 520.2 LECrim).

The law provides for only one extension, and a very narrow one: for the offences referred to in Article 384 bis LECrim, Article 520 bis allows custody to be extended by up to forty-eight hours more, if the police request it with reasons and a judge authorises it in a reasoned decision. Outside that case, the LECrim provides for no extension of the seventy-two-hour period.

What happens if the 72 hours are exceeded?

Custody that goes beyond the legal time limit is no longer covered by the law. Organic Law 6/1984, which regulates habeas corpus, treats as unlawfully detained, among others, persons held “for longer than the period laid down by law” without having been released or handed over to a judge (Article 1(c)). That has two consequences:

  • A habeas corpus application can be made and, if the period has already expired, the judge may order the detainee to be brought before the court immediately, or released if the detention was unlawful (Article 8 of the same Act).
  • The authority or official responsible may commit an offence. Article 530 of the Spanish Criminal Code (CP) punishes an authority or public official who, in proceedings for an offence, prolongs a detainee’s deprivation of liberty without respecting the time limits or other constitutional or legal safeguards, with special disqualification from public employment or office for four to eight years.

Exceeding the time limit does not, on its own, put an end to the investigation of the facts: what consequences it has within the proceedings is something your lawyer must assess in each case.

The first hours at the police station

After the arrest you will be taken to police premises, where your police record is taken (photographs and fingerprints). If this was not done before, you will be informed in writing, in simple and accessible language and in a language you understand, of the facts, the reasons for the arrest and your rights, and you may keep that document throughout the detention (Article 520.2 LECrim). The full list is in Article 520 of the Criminal Procedure Act, and we cover it in our guide to detainee rights at the police station. In terms of the timeline, these rights matter most:

  • Notice to a relative or to the person you choose that you have been arrested and where you are being held, and a call to a third party in the presence of an officer; if you are a foreign national, notice to your consulate as well (Article 520.2(e), (f) and (g)). If the person arrested is someone close to you, we explain what to do if a relative is arrested.
  • A lawyer of your choice or, if you do not appoint one, a duty lawyer (abogado de oficio). No officer may recommend a particular lawyer, and the lawyer appointed must attend the station within three hours of receiving the instruction (Article 520.5).
  • Remaining silent, not incriminating yourself and having access to the parts of the file that are essential to challenge the lawfulness of the arrest (Article 520.2(a), (b) and (d)).
  • An interpreter, if you do not understand or speak Spanish, and a medical examination by the forensic doctor or by another doctor employed by the State or another public administration (Article 520.2(h) and (i)).

If the person arrested is a minor, they are placed at the disposal of the Juvenile Section of the Public Prosecutor’s Office, and those who hold parental authority, guardianship or custody are informed (Article 520.4). Only for offences against road safety can the detainee waive the assistance of a lawyer, and that waiver can be withdrawn at any time (Article 520.8).

Giving a statement at the police station or remaining silent

A statement to the police is not compulsory. The Constitution guarantees that a detainee cannot be compelled to make a statement (Article 17.3), and the LECrim allows you not to make one, to answer only some questions or to reserve your statement for the judge (Article 520.2(a)). Remaining silent is the exercise of a right, not an admission of anything.

The sensible course is not to decide before the private interview with your lawyer, which the law allows even before the police, the prosecutor or the judge takes your statement (Article 520.6(d)). What you say at the station goes into the police report, which is sent to the court: a hasty explanation, however sincere, can make the defence harder later on. If you deny the allegations, before deciding read also what to do if you are accused of something you did not do.

If you do give a statement, your lawyer takes part: at the end, they can ask for it to be extended on any points they consider appropriate and for any incident to be recorded, and they advise you on the consequences of consenting to or refusing procedures such as taking a mouth swab sample (Article 520.6(b) and (c)). Read the whole record before signing it. The lawyer’s work during those hours is set out in what your lawyer does during the detention.

The exception: incommunicado detention

Exceptionally, a judge may order incommunicado detention in a reasoned decision where there is an urgent need to avoid serious consequences for a person’s life, liberty or physical integrity, or to act immediately so as not to seriously jeopardise the criminal proceedings (Article 509 LECrim). It may not last more than five days, save for a limited extension, and it never applies to minors under sixteen. While it lasts, rights such as appointing a lawyer of your choice, communicating with relatives or speaking privately with your lawyer may be restricted (Article 527 LECrim). We analyse it in incommunicado detention and imprisonment.

If the arrest is unlawful: habeas corpus

Habeas corpus is the procedure provided for in the Constitution so that anyone unlawfully detained is immediately brought before a judge (Article 17.4), and it is regulated by Organic Law 6/1984. A detention is unlawful, among other cases, where it is made without the legal grounds or without complying with the formalities, where it exceeds the legal time limit and where the detainee’s rights are not respected (Article 1).

  • Who can apply: the detainee, their spouse or partner, their descendants, ascendants or siblings (for a minor, their legal representatives), their lawyer, the Public Prosecutor’s Office and the Ombudsman (Defensor del Pueblo); the judge may also start the procedure of their own motion (Article 3).
  • How: in writing or by appearing in person, without the need for a lawyer or a court agent (procurador), stating who the detainee is, where they are held and why the application is made (Article 4). If the detainee makes the application, the officers must pass it on to the judge immediately (Article 5).
  • Time limits: the investigating judge of the place where the detainee is held decides whether to admit it; if it is admitted, the judge hears the detainee and the officers and rules within twenty-four hours of the order opening the proceedings (Articles 2, 6 and 7).
  • Outcome: if the detention is lawful, the case is closed; if not, the judge may order release, continued custody in another place or by other persons, or immediate handover to the judge (Article 8).

This procedure does not examine whether you committed the offence, only whether the deprivation of liberty is lawful. We explain it in more detail in how habeas corpus works in Spain.

Release by the police or handover to the duty judge

Not every arrest ends before a judge. When the police finish their enquiries, they may release you instead of taking you to court (Article 520.1 LECrim). That does not close the matter: the police report still reaches the court, which may later summon you as an investigated person (investigado). In cases that follow the expedited trial procedure (procedimiento de enjuiciamiento rápido), a reported person who is not kept in custody receives from the police a summons to appear before the duty court on a specific day and at a specific time, and must attend (Article 796 LECrim). The difference from a summons issued by the police themselves is explained in whether you have to go when the police summon you.

If you are not released, the police bring you, together with the police report, before the duty judge: today, the Investigating Section of the Court of Instance (Tribunal de Instancia) that is on duty. There you give a statement as an investigated person, this time before the judge and with your lawyer. You again have the right to remain silent but, unlike at the police station, this may be the right moment to put forward the defence’s version, with the strategy already prepared and the case file examined.

What the judge can decide: release, measures or pre-trial detention

After your statement, the judge rules on your personal situation. The judge may order provisional release without bail straight away. If the prosecutor or another accusing party asks for pre-trial detention or release on bail, the judge first holds the hearing provided for in Article 505 LECrim, which takes place as soon as possible within the seventy-two hours following the handover to the judge. At that hearing your lawyer may make submissions, propose evidence and access the parts of the file essential to challenge the deprivation of liberty; if no party asks for detention or bail, the judge must order your immediate release (Article 505.4). There are three possible outcomes:

  • Release without measures: you are free and the investigation continues; you will have to attend whenever you are summoned.
  • Release with precautionary measures: the obligation to report to the court on the days set, surrender of your passport, bail or other measures provided for by law, such as an order to stay away from the victim (Article 544 bis LECrim).
  • Pre-trial detention (prisión provisional): only if it is requested and the requirements of Article 503 LECrim are met, including that the offence carries a maximum penalty of two years’ imprisonment or more (or less, if there are uncancelled previous convictions for an intentional offence) and that the measure pursues one of the purposes listed by law, such as preventing the risk of absconding.

Where the judge who receives the detainee is the judge in charge of the case, and the arrest was made in one of the situations under Articles 490 and 492 LECrim listed in Article 497 LECrim, the law also gives that judge seventy-two hours from the handover to convert the arrest into detention or to set it aside; the same period applies where that judge ordered the arrest. And if the offence qualifies for the expedited trial procedure (Articles 795 et seq. LECrim), the investigation can be completed during the duty period itself, where the judge decides how the proceedings continue (Article 798 LECrim).

What to do and what not to do

  • Stay calm and identify yourself. Resisting does not prevent the arrest and may add a further offence.
  • Ask for a lawyer and wait for the private interview before deciding whether to give a statement.
  • Ask for a relative to be informed, or the person you choose, and for a medical examination if you need one.
  • Remember the time of the arrest: it is the reference point for the time limit.
  • Do not give spontaneous explanations to the officers, in the car or in the cell: what you say may end up in the police report.
  • Do not sign records or documents without reading them and without advice, and do not discuss the case on the phone or with other detainees.

Before any statement, let a criminal lawyer assess the case. You can call us on +34 91 078 65 74 for an initial assessment of your case.

Official text: article 17 of the Spanish Criminal Procedure Law (BOE)

Frequently asked questions

How long can the police keep me under arrest?

Only for the time strictly necessary for their enquiries and, at most, 72 hours from the arrest (Article 17.2 of the Spanish Constitution and Article 520.1 LECrim). Within that period the police must release you or bring you before a judge. It is not a right to hold you: if the enquiries finish earlier, they must do so at that point. Only Article 520 bis LECrim allows, for a specific group of offences and with judicial authorisation, an extension of up to forty-eight hours more.

What happens if the 72 hours are exceeded?

The detention becomes unlawful. A habeas corpus application can be made so that a judge examines the situation and, if the period has already expired, orders immediate handover to the judge or release (Articles 1 and 8 of Organic Law 6/1984). In addition, an authority or official who prolongs the detention without respecting the time limits may be punished with special disqualification for four to eight years (Article 530 CP).

When will I be taken to the duty court?

When the police finish their enquiries and do not release you, and always within 72 hours of the arrest. You are brought, together with the police report, before the duty judge (today, the Investigating Section of the Court of Instance on duty), where you give a statement as an investigated person with your lawyer present.

Can the police release me without taking me before a judge?

Yes. The law allows the police to release you when they finish their enquiries (Article 520.1 LECrim). That does not close the matter: the police report reaches the court, which may later summon you as an investigated person. If the police hand you a summons to appear before the duty court, you must attend.

Will my family be told if I am arrested?

If you ask. You have the right to have a relative or a person of your choice told without undue delay that you have been arrested and where you are being held, and to make a call in the presence of an officer. If you are a foreign national, your consulate is also informed (Article 520.2 LECrim). If you are a minor, those who hold parental authority, guardianship or custody are informed. Only in incommunicado detention can these communications be restricted.

What rights do I have while under arrest?

You have the right to remain silent and not to incriminate yourself; to a lawyer, of your choice or a duty lawyer, with whom you can speak in private before making a statement; to access the parts of the file essential to challenge the arrest; to an interpreter if you do not understand the language; to a medical examination; and to have a relative or your consulate informed (Article 520.2 LECrim).

Should I make a statement at the police station?

As a general rule, not without speaking to your lawyer first. Making a statement to the police is not compulsory, and you may reserve it for the judge (Article 520.2 LECrim). The advisable course is to have the private interview with your lawyer first, which is a right, and decide together whether to make a statement or wait for the statement before the judge, once the strategy is prepared.

What is habeas corpus and when can I request it?

It is an urgent procedure for a judge to examine immediately whether a detention is lawful. It applies if you were arrested without legal grounds, if the time limit has been exceeded or if your rights are not respected. The detainee, their family or their lawyer can apply, and no lawyer or court agent is needed to file it. The police must pass the application on to the judge immediately, who, if it is admitted, rules within twenty-four hours of the order opening the proceedings (Organic Law 6/1984).

What happens when I am brought before the duty judge?

The judge takes your statement, this time with your lawyer present, and decides your personal situation. If the prosecutor or another accusing party asks for pre-trial detention or bail, the Article 505 LECrim hearing is held first, within the following 72 hours; if nobody asks for either, the judge must release you. The possible outcomes are release without measures, release with precautionary measures or pre-trial detention.

Do you need criminal defence in this area?

We are criminal defence lawyers specialising in fast trials. We act urgently to protect your rights.

View expertise

This page is for information purposes only and does not constitute legal advice: every case requires individual assessment. How this content is produced and verified: editorial policy.

Related Articles

View all

Before you act, speak to a criminal defence lawyer.

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