Our Expert in Spain
Last reviewed: June 29, 2026
Whether you are a resident, an expat, a tourist, or a journalist working in Spain, understanding exactly when and how police can search you is essential to protecting your rights. The question “can police search you in Spain? ” does not have a single yes‑or‑no answer, it depends on what they want to search, where the encounter takes place, and whether a judge has authorised the intrusion. Spanish law draws sharp distinctions between a routine identity check on the street, a pat‑down for weapons, a vehicle inspection at a checkpoint, and the forensic extraction of data from your smartphone.
Heightened interest in device searches and encrypted phones between 2024 and 2026 has made the phone‑passcode question one of the most pressing practical pain points for anyone stopped by officers. This guide walks through every scenario, cites the statutes that govern each one, and provides clear, step‑by‑step actions you can take on the spot.
If you are being stopped right now, remember three things:
Yes, but with limits. Spanish police can carry out identity checks and limited on‑the‑spot searches under Ley Orgánica 4/2015 (the Citizen Security Law). For more intrusive searches, your home, your phone, your private communications, judicial authorisation is almost always required under the Ley de Enjuiciamiento Criminal (LECrim), unless an exception such as flagrante delicto applies.
The legal foundation for a stop and search in Spain rests primarily on Ley Orgánica 4/2015, officially titled the Ley de Protección de la Seguridad Ciudadana. This statute grants law‑enforcement agencies, the Policía Nacional, the Guardia Civil, and autonomous‑community police forces, the power to stop individuals in public places and require them to identify themselves. Understanding exactly when a police ID check in Spain is lawful helps you respond calmly and effectively.
Under Article 16 of Ley Orgánica 4/2015, officers may require you to show identification when they have reasonable grounds to believe that doing so is necessary to prevent a criminal offence, to locate a wanted person, or to maintain public safety. In practice, this covers a wide range of situations: routine patrols in areas with elevated crime, events where crowd control is needed, or when your behaviour or presence matches a description circulated by a court or police command.
If you are carrying your national ID card (DNI for Spanish citizens) or your passport or residence card (for foreigners), the process is usually brief. Officers check the document, verify it against police databases, and release you. You are not required to explain where you are going or justify your presence.
What to say: “Aquí tiene mi documento de identidad.” (“Here is my identification document.”) There is no obligation to answer further questions at this stage.
Refusing to produce identification, or providing false details, can escalate an encounter significantly. Officers may take you to the police station for identification purposes, a process that under Article 16.2 of Ley Orgánica 4/2015 may last no longer than the time strictly necessary, and in any event must not constitute a formal arrest. Additionally, a refusal or obstruction may result in an administrative fine under the same statute.
Best practice is clear: always carry valid ID in Spain. Comply with the identification request itself, but remember that showing ID is not the same as consenting to a full search of your person, your belongings, or your devices.
Search and seizure in Spain follows a graduated framework. The more intrusive the search, the higher the legal threshold the police must meet. The table below summarises the core rules before the detailed breakdown.
| Search Type | When Allowed Without a Warrant | Usual Requirements and Notes |
|---|---|---|
| Personal / bag search | Officers suspect an immediate danger, weapons, or contraband; public order grounds under Ley Orgánica 4/2015 | Must be proportionate and limited in scope. You may refuse an intrusive body search and request a lawyer if you are detained. |
| Vehicle search | At routine checkpoints (DUI, documentation); or when officers have reasonable suspicion of criminal activity or a safety risk | Consent speeds the process. For sealed containers in the boot, officers may need either probable cause or a judicial order in certain cases. |
| Home search | Only with your voluntary consent, in flagrante delicto, or in genuine emergency | Judicial warrant required under LECrim in all other cases. Evidence gathered without proper authorisation risks exclusion at trial. |
A surface pat‑down (cacheo) is the least intrusive search Spanish officers can perform. It is lawful when an officer has reasonable grounds to suspect that you are carrying a weapon, drugs, or evidence related to a crime. The scope must be proportionate: officers may feel the outside of your clothing and ask you to open a bag, but a strip search on the street is not permitted. If the encounter escalates to a more thorough body search, it must be conducted by an officer of the same sex and, where possible, in a private setting.
Consent plays a critical role. If you voluntarily open your bag or empty your pockets, the search is treated as consensual. Politely stating “No consiento al registro, pero no me resisto” (“I do not consent to the search, but I will not resist”) preserves your right to challenge the search later without creating a confrontation.
Vehicle stops at road checkpoints are common in Spain, particularly during holiday periods and anti‑drug operations. Officers may ask you to step out of the car, check your licence, insurance and ITV (roadworthiness certificate), and visually inspect the passenger compartment if they suspect a safety risk. A deeper search, opening the boot, examining sealed packages, typically requires either your consent or a reasonable suspicion of criminal activity. At formal anti‑narcotics checkpoints, officers operate under specific judicial or administrative authorisations that allow more thorough inspections.
If your vehicle is searched, note the officers’ badge numbers, request a copy of any written record (acta), and contact a lawyer if items are seized.
Article 18.2 of the Spanish Constitution declares the home inviolable. No entry or search may take place without the consent of the occupant, a judicial warrant, or a situation of flagrante delicto. The Ley de Enjuiciamiento Criminal reinforces this principle: a search warrant (auto de entrada y registro) must be issued by the investigating judge (juez de instrucción), specify the address, state the reasons, and identify the crime under investigation. Evidence obtained through a warrantless entry that does not fall within a recognised exception is subject to exclusion at trial.
This is where the question “can police search you in Spain?” becomes most contentious. A smartphone contains vastly more personal data than a wallet or a bag, messages, photographs, location history, banking credentials, medical records, cloud‑synced documents. Spanish law treats a phone search as a significant intrusion into privacy, and the legal protections are correspondingly strong.
The short answer is no, not without judicial authorisation. When a Spanish police officer searches your phone on the spot, scrolling through messages, opening applications, viewing photographs, that constitutes an interference with the right to privacy and the secrecy of communications protected by Article 18 of the Spanish Constitution. The LECrim requires that any access to the content of electronic devices be authorised by a judge, except in narrow circumstances (for example, if the phone is found open at the scene of a crime and its content is in plain view).
In practice, officers may seize your phone as potential evidence and place it in a sealed bag. They cannot lawfully open it, bypass its lock screen, or demand that you do so during a street encounter. If an officer asks you to unlock your device, you are within your rights to politely decline and request that any examination be conducted under judicial supervision.
This is one of the most frequently asked questions, and the answer carries significant practical consequences. Spanish law does not contain a simple statutory obligation compelling a suspect or citizen to disclose a phone passcode to police on demand. The right to silence and the privilege against self‑incrimination, recognised in Article 24.2 of the Spanish Constitution and reinforced by ECHR case law, mean that you cannot be forced to actively collaborate in your own prosecution by revealing a password.
That said, a judge may issue an order requiring you to cooperate with the unlocking of a device as part of a criminal investigation. Even then, the legal landscape is complex: defence lawyers regularly challenge such orders on the ground that compelling a passcode is functionally equivalent to compelled testimony. Industry observers expect this area of law to continue evolving as encryption technology advances and courts confront new scenarios.
Recommended wording if asked for your passcode on the street: “No autorizo el acceso a mi teléfono. Solicito la presencia de mi abogado y una orden judicial.” (“I do not authorise access to my phone. I request the presence of my lawyer and a court order.”)
Do not physically resist seizure of the device, but do not voluntarily unlock it either. Remain polite, note the officer’s details, and contact a criminal defence lawyer immediately.
When investigators believe a phone contains evidence relevant to a criminal case, they apply to the juez de instrucción for an auto authorising forensic extraction. The LECrim sets out the procedural requirements: the application must specify the device, the suspected offence, the type of data sought, and the proportionality of the intrusion. The judge’s order should be limited in scope, for example, authorising access to call records and messaging applications, but not to unrelated personal files.
Forensic extractions are typically carried out using specialised tools that create a verified copy of the device’s contents. The chain of custody must be documented meticulously. If the extraction was conducted without proper authorisation, or if the scope of the order was exceeded, the defence may file a motion to exclude the evidence as obtained in violation of fundamental rights.
Modern smartphones synchronise data to cloud services, which means that even if your physical device is seized, copies of your information may exist on remote servers. Spanish law requires separate judicial authorisation to access cloud‑stored data, and telecommunications providers and technology companies may be compelled to provide data only through formal judicial cooperation channels. Officers cannot unilaterally contact your cloud provider and request a data dump.
As for tracking, local police cannot track your phone’s real‑time location without judicial authorisation. The LECrim provisions on technological surveillance require a court order specifying the duration, scope, and justification. If you suspect unlawful tracking, document your concerns and raise them with your lawyer immediately.
The judicial warrant is the cornerstone of lawful search and seizure in Spain. Whether the target is a home, a vehicle’s sealed compartment, or a locked smartphone, the default rule under the LECrim is the same: obtain a warrant from the investigating judge first. Understanding the exceptions, and their limits, is essential.
If officers present a warrant, you should verify the following details before allowing entry or handing over property:
| Item to Check | What to Look For |
|---|---|
| Issuing court | Name of the juzgado de instrucción and case number (número de diligencias previas) |
| Address or device | The specific premises, vehicle, or device listed, the warrant must match what is being searched |
| Scope | What officers are authorised to search for (e.g., “documents relating to fraud” vs “all contents”) |
| Date and validity | Warrants are not open‑ended, check the date of issue and any stated expiry |
| Judge’s signature | The order must be signed by the judge; an unsigned draft is not a valid warrant |
If any element is missing or the warrant does not match the premises or device in question, state your objection clearly, do not physically resist, and instruct your lawyer to challenge the search in court.
Flagrante delicto, catching someone in the act of committing a crime, is the most recognised exception to the warrant requirement. If officers witness a crime in progress (for example, a drug deal occurring at a doorstep), they may enter the premises without prior judicial approval. A genuine emergency threatening life or physical safety (such as hearing screams from inside a residence) can also justify warrantless entry. Crucially, the police bear the burden of justifying the exception after the fact, and courts scrutinise these claims carefully.
Knowing your rights is only useful if you can exercise them calmly under pressure. The following do‑and‑don’t framework applies whether you are stopped on the street, at a checkpoint, or in your home.
Spanish law grants detained persons a set of fundamental rights that officers must communicate at the time of arrest. These include the right to remain silent, the right to appoint a lawyer (or have one appointed by the bar association), the right to an interpreter if you do not speak Spanish, and the right to inform a family member or your consulate of the detention. The detention must be brought before a judge within 72 hours, and you have the right to habeas corpus if you believe the detention is unlawful.
Foreign nationals should specifically request that their consulate be notified. This is a right under the Vienna Convention on Consular Relations, and officers are obliged to facilitate the notification.
Preserving evidence of what happened is critical. As soon as possible after the encounter, write down every detail: the time, location, officers involved, what was said, what was searched, and whether consent was requested or given. Identify any witnesses and obtain their contact details. If you were filming the encounter, which is generally permitted in public spaces, though subject to limits discussed below, preserve that footage securely.
Contact a criminal defence lawyer without delay. The earlier legal advice is sought, the more effectively any challenge to the search can be prepared.
If a search was conducted unlawfully, Spanish law provides several avenues of redress. These are not mutually exclusive, you may pursue more than one simultaneously.
If you are being held without charge or without access to a lawyer, you may invoke the right to habeas corpus under Ley Orgánica 6/1984. This procedure requires a judge to examine the legality of your detention within 24 hours. Any person, not just the detainee, can initiate the request. For broader constitutional violations, an amparo before the Tribunal Constitucional is available, though this is typically a longer‑term remedy used after domestic judicial avenues have been exhausted.
The rules on whether police can search you in Spain are layered and fact‑specific. A street‑level ID check requires only that you produce a document. A pat‑down for weapons must be proportionate. A vehicle search at a checkpoint follows different rules from a search of your home. And your phone, the device that contains your entire digital life, enjoys some of the strongest protections in Spanish law, requiring judicial authorisation for access in virtually all cases.
If you have been searched, if your phone has been seized, or if you believe your rights were violated during a police encounter, seek legal advice immediately. An experienced criminal defence lawyer can assess whether the search was lawful, file motions to exclude improperly obtained evidence, and pursue complaints or claims on your behalf. Visit the lawyer directory to find a qualified practitioner.
This article was produced by Global Law Experts. For specialist advice on this topic, contact Raúl Pardo-Geijo Ruiz at Pardo Geijo Abogados (Mejores abogados penalistas España), a member of the Global Law Experts network.
posted 12 minutes ago
posted 58 minutes ago
posted 1 hour ago
posted 2 hours ago
posted 3 hours ago
posted 3 hours ago
posted 4 hours ago
posted 4 hours ago
posted 6 hours ago
posted 6 hours ago
posted 7 hours ago
posted 7 hours ago
No results available
Find the right Legal Expert for your business
Sign up for the latest legal briefings and news within Global Law Experts’ community, as well as a whole host of features, editorial and conference updates direct to your email inbox.
Naturally you can unsubscribe at any time.
Global Law Experts is dedicated to providing exceptional legal services to clients around the world. With a vast network of highly skilled and experienced lawyers, we are committed to delivering innovative and tailored solutions to meet the diverse needs of our clients in various jurisdictions.
Global Law Experts is dedicated to providing exceptional legal services to clients around the world. With a vast network of highly skilled and experienced lawyers, we are committed to delivering innovative and tailored solutions to meet the diverse needs of our clients in various jurisdictions.
Send welcome message