In Spain, the police may arrest you for a flagrant offence or where there are reasonable grounds linking you to a crime. That deprivation of liberty is not open-ended: the Criminal Procedure Act sets strict deadlines to bring you before a judge. Confusing “cells” with pretrial detention is common and leads to rash decisions. This analysis explains how long you can be held, what the duty judge does, and what to activate from the first hour.
In this analysis
The legal framework: where the deadlines come from
Police custody is mainly governed by Article 527 and following of the Criminal Procedure Act (LECrim). The rule most people remember — seventy-two hours — is the maximum you can be deprived of liberty before a judge rules on your situation, except for very exceptional extensions in specific terrorism or organised-crime cases.
Those hours include time at the station, transfers, samples, medical checks, and waiting for judicial handover. The clock does not start “when you reach the court”; it starts when the deprivation of liberty is effective.
Custody is not a sentence. It is a police precautionary measure to secure your presence, protect evidence, or protect victims. That is why the system requires prompt judicial control: prolonging liberty deprivation without it violates fundamental rights.
In Madrid practice, the bottleneck is often coordination between the station, the prosecution, and the duty court. Having a lawyer from the outset helps verify that hours are not lost to avoidable paperwork and to prepare the hearing, not just wait.
What happens at the police station (and what counts as time)
After arrest, the police must inform you of your rights: a lawyer, the right to remain silent, an interpreter if needed, and family notification within legal limits. Any statement without legal assistance can close paths that take months to reopen.
At the station, identification and lawful personal searches may take place, plus urgent steps. Time here counts toward the overall limit. Relatives sometimes think “it has been a day” when the judicial clock shows fewer hours — or the opposite if there were irregular delays.
Do not sign documents “to get out sooner” without your lawyer reviewing them. Custody records, identification forms, and consents have procedural consequences.
If language is a barrier, insist on assistance in a language you understand. At Gaurley we work in Spanish, Romanian, and English; in arrests involving foreigners, a misunderstanding in the first statement is often where problems start.
Judicial handover and the duty court
Before the deadline expires, the police must place you at the disposal of the competent duty court. The merits are not tried there: the judge decides whether to maintain deprivation of liberty, impose measures (bail, passport withdrawal, reporting duties), or release you with a summons.
The prosecutor and judge know the police report and steps taken. Your lawyer can seek essential disclosure, argue on the legality of custody, and on the need for measures. This hearing is short but decisive.
Release at the duty court does not mean “case closed”. It means there is no legal ground at that moment to keep depriving you of liberty. You may still be summoned as a suspect with other obligations.
If the judge orders pretrial detention — different from police custody — another regime of deadlines and periodic reviews applies. Do not conflate the two when speaking with family.
Extensions and special cases
Outside normal cases, the law allows custody extensions only in listed situations (for example certain terrorism or organised-crime offences), with strict formal requirements. If you are told of an extension, check immediately whether the legal conditions are met.
In complex economic crime, custody is sometimes used to secure documents or prevent tipping off third parties. That does not automatically extend the deadline: the judge remains the ceiling.
Delays due to lack of resources — forensic doctor, translator, transport — should not be loaded onto the detainee without control. Your lawyer can protest and reserve actions for deadline breaches where appropriate.
Criminal records or parallel investigations influence decisions on measures, not the legality of custody time itself. Mixing “they will hold me longer because I have another case” with the hour count leads to mistakes.
What you (and family) should do while time runs
Engage a lawyer as soon as possible. Provide full name, station or police force, approximate arrest time, and whether you have already made a statement. Do not ask the detainee for a full account on the phone if calls are monitored.
Keep any receipt, report number, or police contact you are given. That speeds up locating the duty court and the likely hearing time.
Do not post on social media or build a public version of events. That does not shorten deadlines and can harm the defence.
After handover, useful work is strategy for the next forty-eight hours: investigation statement, documents, precautionary measures, and contact with the prosecution. Custody is one phase; the case may continue.
