In criminal proceedings, the entry and search of a home is one of the most invasive measures that can be ordered against a person. Article 18 of the Spanish Constitution therefore establishes reinforced protection of the right to the inviolability of the home, guaranteeing that no entry or search may be carried out without the consent of the occupant or a court order.
Article 18 of the Constitution provides that the home is inviolable and that no entry or search may be made without the consent of the occupant or a court order, except in the case of a flagrant offence. This provision makes the home a space of protected privacy, shielded from interference by public authority unless strictly defined circumstances arise.
What conditions must be met for the entry and search of a home?
Express consent of the occupant. An entry and search may be authorised if the occupant gives free, express and informed consent, which must be duly documented and signed.
Reasoned court order. In the absence of consent, a court authorisation is essential, issued by the competent investigating court following a reasoned request from the Public Prosecutor or the judicial police.
The flagrant offence exception. Only when an offence is being committed at that moment or has just been committed is entry permitted without a court order or consent, for example in pursuit of a suspect who enters the home.
Legal and case-law limits
The entry and search must be directly related to the investigation of an offence and may not be used for mere administrative inspection or disproportionate intrusion. The principle of proportionality requires the measure to be suitable, necessary and balanced in relation to the seriousness of the facts investigated. The search must be fully documented in minutes, in the presence of the person concerned, their legal representative or, failing that, a witness.
The Constitutional Court has repeatedly held that the court authorisation is not a mere formality but a mechanism of control and guarantee, requiring clear reasoning on the existence of reasonable indications of an offence and the need for the entry. The European Court of Human Rights has likewise stressed that measures affecting the home must meet the standards of legality, necessity in a democratic society and proportionality.
Conclusion
The entry and search of a home is an exceptional measure subject to strict guarantees in the Spanish legal system. Article 18(2) of the Constitution acts as a safeguard of individual liberty, a reminder that the protection of privacy and private life prevails over any police or judicial action that does not meet the constitutional and legal requirements. A democratic society not only prosecutes crime: it also respects the fundamental rights of those under investigation.
What the warrant and the search must comply with
Articles 545 and following of the Criminal Procedure Act regulate the entry and search of a home. The judicial decision must be reasoned, identify the home, the person concerned and the offence investigated and explain why the measure is proportionate; a generic order covering an entire building or an undefined set of premises is not valid. The search is carried out in the presence of the person concerned or their representative, or, failing that, of adult family members or two witnesses, and always under the supervision of the court clerk (Letrado de la Administración de Justicia), who draws up a record listing every item seized. A person under arrest has the right to be brought to the search and to be present; their lawyer may attend, and it is advisable that they do so, because the objections raised at that moment are those that later support a claim of nullity.
Shared homes, hotel rooms and business premises
Consent as a basis for entry raises frequent disputes. Where several adults share a home, the consent of one of them is not enough when the person under investigation is present and objects, and in any event consent given by a detained person is valid only if given with the assistance of a lawyer. The Constitutional Court treats a hotel room as a home while it is occupied, so that the same guarantees apply to it. Offices and business premises open to the public are not protected as a home, although the closed premises of a company where its management is conducted do enjoy a special regime that also requires a judicial decision. Vehicles, storage units and garages that are not part of the dwelling are not covered by Article 18.2 of the Constitution and may be searched under the general rules.
The consequence of an unlawful search: nullity of the evidence
Article 11.1 of the Organic Law on the Judiciary provides that evidence obtained, directly or indirectly, in breach of fundamental rights has no effect. An entry without a valid warrant, consent or flagrancy therefore renders inadmissible not only what was found in the home but also the evidence derived from it, such as the analysis of seized devices or the statements obtained by confronting the person with those items, unless the prosecution proves an independent source. The nullity is raised at the preliminary hearing and again at the trial, and it is one of the most effective defences in drug and economic crime proceedings, where the search is often the only source of evidence.
Frequently asked questions
Can the police enter my home without a court order in Spain?
Only with the free, express and informed consent of the occupant or in the case of a flagrant offence. In any other case a reasoned court order is required.
What happens if a search is carried out without the guarantees?
The evidence obtained may be declared void, together with everything derived from it, and the search may be challenged for breach of Article 18 of the Constitution.
Must I be present during the search?
The search must be documented in minutes in the presence of the person concerned, their legal representative or, failing that, a witness.
Does a hotel room have the same protection as a home?
Yes. While it is occupied, a hotel room is treated as a home by the Constitutional Court, so entry requires consent, a judicial warrant or flagrancy.
What happens to the evidence if the search was unlawful?
Under Article 11.1 of the Organic Law on the Judiciary, evidence obtained in breach of fundamental rights has no effect, together with the evidence derived from it, unless an independent source is proven.
Related guides
- Can the police search your phone without a court order?
- Interception of communications in Spain
- Frequently asked questions on criminal defence in Spain
Do you need a criminal defence lawyer in Alicante or Madrid now? Société Juridique provides emergency assistance and 24-hour assistance to detained persons in Alicante, Madrid and throughout Spain.
This article is informative in nature and does not constitute legal advice. For a specific case, consult a lawyer.
Francisco Javier Martín Porras
Abogado penalista, socio de Société de Conseil Juridique et Expert y creador de la metodología LIWARD®. Dirige la defensa en procedimientos penales de alta complejidad, combinando estrategia procesal con análisis pericial y forense. Conozca al equipo →

