Filing a Habeas Corpus petition

Pluma sobre carpeta de cuero con el logo de Juan Antonio Matiz

Habeas corpus, in brief

  • What it is. The constitutional action to regain liberty when an arrest was unlawful or detention is prolonged beyond what the law allows (Constitution, art. 30; Law 1095 of 2006).
  • Who can file it. The detained person or anyone else on their behalf.
  • Where. Before any judicial authority in the country, at any time: the proceeding is not suspended on holidays or during judicial recess.
  • How long it takes. The judge must decide within 36 hours of filing.
  • How many times. It can be invoked only once, which is why the grounds matter.
  • If it is denied. The decision can be challenged within three calendar days.

Arrested in the last 36 hours? Message us on the firm’s WhatsApp; we respond subject to availability.

Detained without legal basis: what can be done in the next few hours

The call no one expects: a member of your family has been arrested. The first sensation is paralysis. The second, urgency with no direction. And every hour that passes in that uncertainty is another hour of detention that may be —or may not be— lawful.

In Colombia, not every arrest is legitimate. Article 30 of the Constitution establishes habeas corpus as the specific constitutional action protecting personal liberty against arrests that are unlawful, arbitrary, or prolonged beyond what the law allows. The judge must decide within 36 hours of filing. It is the constitutional action designed specifically to restore the liberty of someone detained without legal basis.

Whether it succeeds depends largely on how the unlawfulness of the detention is shown to the judge. It is not a formality: it is technical work.

What habeas corpus is and what it protects

Habeas corpus is established in article 30 of the Constitution of Colombia and regulated by Law 1095 of 2006. It is not an ordinary appeal or a secondary procedural step: it is the constitutional action for direct and immediate protection of personal liberty.

It can be filed by anyone —not only the detainee, not only a lawyer— before any judge in the country, at any time, wherever the detainee is held. From filing, the judge has 36 hours to decide. A decision granting habeas corpus orders immediate release; compliance is mandatory.

What admits no improvisation is the legal grounding: Law 1095 of 2006 (art. 1) provides that the action may be invoked only once, and a petition without sufficient grounds can be refused. The technical quality of the petition and of the representation at the hearing makes the difference.

When it lies: the situations that trigger the action

Law 1095 of 2006 (art. 1) provides for two situations: deprivation of liberty in breach of constitutional or legal guarantees, and its unlawful prolongation. In practice they usually arise as follows:

  • Unlawful arrest: the deprivation of liberty was carried out without the statutory conditions —without arrest in flagrante and without a judicial order, or without any of the situations in article 302 of the Criminal Procedure Code.
  • Arbitrary arrest: the detention, although formally begun with some legal basis, infringes fundamental rights by the way it was carried out —arbitrary incommunicado detention, unjustified transfer, conditions that infringe dignity.
  • Unlawful prolongation: the person is held longer than the law allows. Every person arrested must be brought before the judge of control of guarantees within the following 36 hours (art. 28 of the Constitution). With a detention measure: the time limits of the measure imposed. Where those limits are exceeded without a valid judicial basis, habeas corpus lies.

Analysis of the specific case determines which ground applies and how to argue it before the habeas corpus judge. That initial assessment is part of the work the firm does from first contact.

The 36-hour clock: why every hour counts differently

From the moment habeas corpus is filed, the judge has 36 hours to decide. That limit is strict —it cannot be extended. But there is something the limit does not say explicitly: the time taken to prepare a rigorous constitutional argument also matters.

A habeas corpus petition filed in the first hours of a detention, with solid technical argument, is in a different procedural position from one filed three days later. The proof of unlawfulness may be clearer, the conditions of detention more documentable, and the impact on the detained person’s work, family and health more controllable.

Urgency here is not a communications strategy. It is the procedural reality of habeas corpus: acting in the first hour is not worth the same as acting tomorrow.

What decides whether the judge grants or refuses habeas corpus

The habeas corpus judge does not assess the guilt or innocence of the person arrested. The judge assesses exclusively whether the deprivation of liberty meets the statutory and constitutional conditions. That is the hearing —and that is the technical field on which liberty, or continued detention, is decided.

Habeas corpus petitions that are refused share the same weakness: argument insufficient against the concrete conditions of the ground invoked. It is not enough to say the arrest “looks unlawful” —it must be shown which rule was breached, at what moment, with what legal consequence.

The firm analyses the available file, the applicable ground and the constitutional argument, in order to file and to appear at the hearing with the rigor the action demands. There is no ordinary second chance if the first hearing does not produce the expected result.

How the firm handles habeas corpus

Juan Antonio Matiz is a criminal lawyer with an active professional license, practicing criminal law exclusively. The firm has no mixed practice: every case is criminal, and every step —including filing habeas corpus— is taken from an exclusively criminal practice and with the file in view.

Habeas corpus demands two things at once that usually exclude each other: constitutional rigor in the argument and speed of response under urgency. That combination is the firm’s standard for this service. Habeas corpus petitions are not filed as a routine: each one is prepared to hold up at the hearing.

What recent case law says

In March 2026 the Criminal Cassation Chamber of the Supreme Court of Justice reiterated that habeas corpus is subsidiary: it does not lie to obtain a release hearing for expiry of time limits that has not yet been scheduled, because the ordinary procedure exists for that purpose. It also stated that the judge of control of guarantees must actively ensure that the hearing takes place, and that the law allows a maximum of three business days to hold it (art. 160, Law 906 of 2004) (CSJ, AHP049-2026, rad. 72471).

For anyone with a relative in detention, the practical consequence is clear: before turning to habeas corpus, check whether an application for release is already pending and insist that it be heard. Habeas corpus is reserved for unlawful deprivation of liberty, its unlawful prolongation or a decision with no legal basis.

Nationwide attention for habeas corpus

When a person is unlawfully deprived of liberty, every hour counts. The work begins with an initial consultation in which we assess the situation quickly —the circumstances of the arrest, the time limits and the available documentation— and decide at once whether habeas corpus lies and how to act. That diagnosis rests on the firm’s own method of case study, which integrates factual, legal-doctrinal and evidentiary analysis so as to act precisely under time pressure.

The firm acts in liberty matters throughout the country. An arrest can happen anywhere in Colombia, and habeas corpus can be filed before the judicial authority of the place where the person is held or where the infringement occurred. Based in Bogotá D.C., we coordinate the action wherever it is needed, in person and remotely.

If a relative or someone close to you is detained and you believe the deprivation of liberty is unlawful, you can request an initial consultation immediately to assess whether habeas corpus lies and what routes are available.

What people usually ask us

Can anyone file habeas corpus, or only the detainee?

Anyone can. Law 1095 of 2006 (art. 1) provides that habeas corpus may be invoked by the person deprived of liberty, by any person on their behalf, or of the court’s own motion by a judge hearing any proceeding in which a person appears deprived of liberty. It requires no prior notarized power of attorney and the applicant need not be a lawyer —although the quality of the constitutional argument weighs heavily at the hearing.

How long does the judge have to decide?

36 hours from the moment the action is filed (art. 30 of the Constitution and art. 3 of Law 1095 of 2006). The process is not suspended on public holidays or during court recess. The decision may grant the petition —ordering immediate release— or refuse it, with the corresponding appeals.

What happens if the judge refuses habeas corpus?

A decision refusing habeas corpus can be appealed to the superior of the judge who issued it. The appeal must be lodged within three (3) calendar days of notification, and the superior must decide within three (3) business days (art. 7, Law 1095 of 2006). In parallel, other actions can be explored depending on the circumstances: a constitutional injunction for fundamental rights, applications to the judge of control of guarantees, or remedies within the criminal proceeding. A refusal does not close every option, but it does narrow the room for maneuver: the strategy for the appeal must be anticipated from the first instance.

Can it be filed where a judge has already imposed a detention measure?

In principle, habeas corpus does not lie to challenge a detention measure imposed by a judge of control of guarantees —that review is carried out through the ordinary remedies within the proceeding, which belong to the service of representation of persons deprived of liberty. It may lie, however, where the measure has expired without renewal, where the person is being held somewhere other than the place authorized, or where there is prolongation or arbitrariness in the execution for which no ordinary remedy is available. The Supreme Court has reiterated that habeas corpus does not replace the remedies within the proceeding. It does not lie, for example, to seek release for expiry of time limits while an appeal against the decision refusing it is pending (CSJ, AHP2528-2024, rad. 66337), or to give effect to house arrest that has already been granted (CSJ, AHP1134-2019, rad. 55007). Each case requires individual analysis.

Does habeas corpus apply only to arrests in flagrante?

No. Habeas corpus lies in any case of unlawful, arbitrary or prolonged deprivation of liberty, regardless of whether the arrest was in flagrante, on a judicial order, or in any other form. The situations covered by Law 1095 of 2006 reach every form of detention: unlawfulness at the origin, arbitrariness in execution, and excess of the statutory time limits.

What documents are needed to file habeas corpus?

There is no exhaustive list of required documents —the action can be filed with whatever information is available at the time. What determines the strength of the argument is: the place of custody, the date and circumstances of the arrest, the case number if proceedings exist, and any act of the prosecution or the police that can be verified. The firm assesses the available information at first contact and advises what can be obtained urgently to reinforce the argument.

What is the difference between habeas corpus and a constitutional injunction in matters of personal liberty?

They are distinct constitutional actions with different purposes. Habeas corpus (art. 30 of the Constitution, Law 1095/2006) is the specific action protecting personal liberty against unlawful, arbitrary or prolonged arrests. The judge has 36 hours to decide. The injunction (art. 86 of the Constitution) protects any fundamental right —it can be used to protect rights infringed during custody (health, visits, dignified conditions), but it does not replace habeas corpus for challenging the lawfulness of an arrest. In some cases the two actions can be strategically complementary.

Does it lie if I applied for release for expiry of time limits and no hearing has been set?

As a rule, no. The Supreme Court has held that while the ordinary release procedure is available, habeas corpus does not lie, even if the hearing has not been scheduled; the same decision recalled that the judge of control of guarantees must hold it within a maximum of three business days (CSJ, AHP049-2026, rad. 72471). The right course is to demand the hearing before the competent judge and to document the delay.

Updated November 11, 2026.

Sources: Constitution of Colombia, arts. 28 and 30; Law 1095 of 2006, arts. 1, 3 and 7; Law 906 of 2004, art. 160 (current text); Supreme Court of Justice, Criminal Cassation Chamber: AHP049-2026 (rad. 72471, March 26, 2026), AHP2528-2024 (rad. 66337, May 15, 2024) and AHP1134-2019 (rad. 55007, March 27, 2019).

What clients usually ask
Do you take cases outside Bogotá?

Yes. The firm appears before prosecutors, courts and tribunals throughout the country, in person or remotely. Advice and client care may also be in English.

What does the initial consultation include, and what does it cost?

Two one-hour meetings with Juan Antonio Matiz and a written opinion within seven business days, for one monthly legal minimum wage plus VAT. If you retain the firm within the following 30 days, that amount is deducted from the fee.

What if I already have a lawyer in that matter?

Under the rules of the profession, we do not take consultations on a matter in which you already have counsel of record (art. 35, Law 1123 of 2007). If you are going to change counsel, first end that mandate and then book.

Tell us about your case.
We build the strategy.

Book an initial consultation

Two meetings · written opinion within seven business days · confidential

What those who trusted the firm say

4.9★★★★★63 Google reviewsRead the reviews

“He guided us through the whole proceeding with professionalism, commitment and complete availability. He acted on sound criteria and gave us clear, timely guidance. He gave us calm and confidence.”

Verified review · translated

“His ability to listen carefully and analyze the case is admirable. As well as being very kind and respectful, he is deeply human, empathetic and honest. He makes you feel able to speak without fear.”

Verified review · translated

“Anyone should consult them. They are an orderly, empathetic and above all effective firm. They organize the information very well.”

Verified review · translated

“Serious and absolutely organized in every detail of the proceeding. From the first moment he conveys security, clarity and a humane manner. He does not only master the law: he accompanies, explains and defends with real commitment.”

Verified review · translated

“I am a lawyer myself and I believe my case could not have fallen into better hands. Thanks to his effort, experience and professionalism we came closer to true justice.”

Verified review · Victim representation · translated
ES