Law firm in Palma de Mallorca

Criminal law guide

The habeas corpus procedure in Mallorca: when to request it and how it works

Habeas corpus is the safeguard that allows anyone deprived of their liberty to be brought immediately before a judge to check whether the detention is lawful. It is provided for in the Constitution and regulated by Organic Law 6/1984. It is fast, requires neither a lawyer nor a procurador, and the judge must decide within 24 hours. We explain when it applies and how to request it.

Which detentions are unlawful

Article 1 of Organic Law 6/1984 regards the following persons as unlawfully detained:

  • Those detained by an authority, officer, public official or private individual without the legal grounds being met or without complying with the formalities and requirements laid down by law.
  • Those unlawfully held in any establishment or place.
  • Those kept in detention beyond the legal time limit without being released or handed over to the nearest judge.
  • Those deprived of liberty whose rights guaranteed to every detainee by the Constitution and procedural laws are not respected.

Time limits are key. Police custody may not last longer than strictly necessary to investigate the facts and, at most, 72 hours until release or handover to a judge (art. 17.2 of the Constitution and art. 520.1 of the Criminal Procedure Act). A private individual who detains someone must hand them over or release them within 24 hours (art. 496). The rights whose breach justifies habeas corpus include those explained in our guide to legal assistance to detainees: a lawyer, an interpreter, notice to a relative or the consulate, a medical examination or access to the material essential to challenge the detention (art. 520.2).

When habeas corpus is not the right route

Habeas corpus is designed for deprivations of liberty that are not yet under judicial control. If a judge has ordered pre-trial detention, the way to challenge it is to appeal that order and apply for release, not habeas corpus.

Who can request it and before which judge in Mallorca

IssueRuleArticle of Organic Law 6/1984
Entitled personsThe detainee, their spouse or partner, descendants, ascendants, siblings, legal representatives of minors, the support person with specific powers of representation, their lawyer, the public prosecutor and the OmbudsmanArt. 3
On the court's own initiativeThe competent judge may start it without a requestArt. 3
Competent judgeThe investigating judge of the place where the detainee is held; if unknown, of the place of arrest; failing that, of the place of the last newsArt. 2
Special casesCentral Investigating Judge for detentions under art. 55.2 of the Constitution; Military Investigating Judge in military jurisdictionArt. 2

Since Organic Law 1/2025, the functions of the former investigating courts are carried out by the investigating sections of the Courts of First Instance (Tribunales de Instancia), which keep a duty service. In Mallorca this will normally be the duty court in Palma, Inca or Manacor, depending on where the detainee is held.

Have you been summoned or arrested?

What you do in the next few hours is decisive. Call us before making any statement.

How to request habeas corpus

It is started in writing or by appearing in person, and a lawyer or procurador is not required (art. 4). The request must state:

  1. The name and personal details of the applicant and of the detainee.
  2. Where the detainee is held, the authority or person holding them, if known, and any other relevant circumstance.
  3. The specific reason for requesting habeas corpus.

If the detainee requests it, it is enough to tell the officers holding them: they must notify the judge immediately, and if they fail to do so they may incur criminal and disciplinary liability (art. 5). Detainees must also be informed of the procedure for challenging the lawfulness of their detention (art. 520.2.j of the Criminal Procedure Act). If you do not understand Spanish, you are entitled to an interpreter, which is common in Mallorca with tourists and foreign residents.

How it is processed and what the judge can decide

The judge examines whether the requirements are met, informs the public prosecutor and, by order, opens the procedure or rejects the request as inadmissible. No appeal lies against that order (art. 6). If it is admitted, the judge orders that the person be brought before them without delay or goes to where the person is held. The judge hears the detainee, their lawyer if any, the public prosecutor and those who ordered or carried out the detention, and admits evidence that can be taken on the spot. All this must be done within 24 hours of the order opening the procedure (art. 7).

Possible decisions of the judge

Under article 8, the judge, by reasoned order:

  • Closes the case if the deprivation of liberty is lawful.
  • Orders release if the detention was unlawful.
  • Maintains the deprivation of liberty in accordance with the law, but in another establishment or in the custody of other persons.
  • Orders that the person be brought before a judge immediately if the detention period had already expired.

The judge will also refer the matter for prosecution of any offences committed by those who ordered or maintained the detention; and if the applicant acted recklessly or in bad faith, the applicant will be ordered to pay the costs (art. 9).

Common cases and practical advice if you are detained in Mallorca

It arises, for example, when custody is extended without justification while awaiting some formality, when the detainee is not allowed to speak to a lawyer or notify their family, or when foreign nationals are deprived of liberty outside the cases provided by law, a matter we cover under immigration law. Note the exact time of arrest, the place and the officers involved. If you are later summoned to testify, see our guide on being summoned as a suspect. At Castell Abogados we deal with arrests in Mallorca urgently on 684 450 450.

Has something similar happened to you?

Tell us about your case: the first consultation is free and without obligation.

Frequently asked questions

Do I need a lawyer to request habeas corpus?

No. The law allows it to be requested in writing or orally without a lawyer or procurador. Even so, a lawyer helps to set out the grounds properly and to take part in the hearing before the judge.

How long does the judge take to decide?

Once the order opening the procedure has been issued, the judge must carry out all the steps and decide within 24 hours.

Can the police refuse to pass on my request?

No. Officers must notify the judge immediately. If they fail to do so, they will be warned and may incur criminal and disciplinary liability.

Can I appeal if the judge rejects it?

No ordinary appeal lies against the order admitting or rejecting the request. If the right to liberty was infringed, an amparo appeal to the Constitutional Court remains available.

How long can I be held in police custody?

Only for the time strictly necessary to investigate the facts and, at most, 72 hours until release or handover to a judge, except for the special regimes provided by law.

You may also be interested in