Lisboa Assessoria JurídicaClient Service
+55 (47) 99769-5346
WhatsApp

Habeas corpus: protecting liberty from unlawful restrictions

Habeas corpus is a constitutional remedy that protects freedom of movement against illegality or abuse of power, whether an unlawful restriction on the right to come and go or a concrete, imminent threat of one.

Dark tunnel with an arched opening onto a sunlit field.

What is habeas corpus?

Habeas corpus is a guarantee set out in Article 5, item LXVIII, of the Federal Constitution, governed by Articles 647 to 667 of the Code of Criminal Procedure. Its purpose is to protect freedom of movement against unlawful violence or coercion, including when committed through abuse of power.

It may be used at different stages of criminal prosecution, from the investigation to the criminal case and the serving of the sentence, whenever the right to come and go is threatened or restricted.

Unlike other procedural instruments, habeas corpus may also be filed by one person on behalf of another; the person affected does not need to file the petition personally.

When does habeas corpus apply?

The remedy may be used when there is a concrete situation of illegality or abuse of power affecting freedom of movement. The cases provided in the Code of Criminal Procedure include:

  • Unlawful detention

    When a person is deprived of liberty without valid legal grounds or in breach of legal requirements.

  • Excessive detention time

    When someone remains in custody longer than the law allows or when the length of provisional detention amounts to unlawful restraint, depending on the circumstances of the case.

  • Lack of just cause

    When there are no sufficient legal grounds to justify restricting liberty or continuing a given measure.

  • Lack of jurisdiction of the authority

    When the arrest order or restriction on liberty is issued by an authority without legal jurisdiction to do so.

  • Grounds for detention no longer exist

    When the circumstances that justified keeping the restriction on liberty in place cease to exist.

  • Improper denial of bail

    When the person is not allowed to post bail in a situation in which the law permits it.

  • Manifest nullity or extinguishment of criminal liability

    When there is a manifest procedural irregularity or when criminal liability has already been extinguished but an unlawful restriction on liberty persists.

Please note

Whether any of these circumstances exists must be examined case by case. Not every procedural irregularity or disagreement with a court decision justifies granting habeas corpus.

What are the types of habeas corpus?

The remedy may be used in two distinct situations, depending on whether there is a current restriction on liberty:

The choice between the two depends on the specific situation and the nature of the coercion identified.

Please note

The mere abstract possibility of an arrest, without evidence of an actual threat, is not enough to justify the remedy.

How does a habeas corpus petition work?

A habeas corpus petition follows a path from identifying the illegality to review of the case by the competent court. It usually goes through these stages:

  1. Identification

    Filing begins with identifying the restriction on or threat to liberty and the authority or person responsible for the coercion.

  2. Documents

    Next, the documents showing the situation and supporting the petition must be gathered.

  3. Petition

    The petition sets out the unlawful restraint, the legal grounds, and the relief sought, and is filed with the competent court.

  4. Processing

    The judge or court may request information from the authority named as responsible, examine the documents, and, if appropriate, put an end to the illegality.

  5. Review of the case

    The review must take into account the jurisdiction of the court, the available documents, and the particulars of the case.

Is it possible to obtain a preliminary order in habeas corpus?

Yes. In urgent situations, a preliminary order (liminar) may be requested to immediately stop or prevent an unlawful restriction on liberty before the petition is finally decided.

It depends on showing elements that indicate, from the outset, the plausibility of the alleged illegality and the urgency of the relief.

When granted, it may order the suspension of an arrest warrant, the end of a given restriction, or other relief needed to protect freedom of movement, as the case may be.

Please note

Being exceptional, a preliminary order is not granted automatically when the petition is filed.

Who can file a habeas corpus petition?

Under Article 654 of the Code of Criminal Procedure, habeas corpus may be filed by any person, on their own behalf or on behalf of someone else, as well as by the Public Prosecutor's Office.

This means that family members or third parties may also file the petition for someone who is suffering, or is threatened with, unlawful restraint of liberty.

Although the law does not require the petitioner to be an attorney, legal analysis and technical drafting are important to identify the illegality, gather the necessary documents, and properly frame the grounds of the petition.

What documents are needed to file a habeas corpus petition?

The documents depend on the situation underlying the petition. Documents that may be needed include:

  • The court decision that ordered or upheld the detention.

  • The arrest warrant, if there is one.

  • Documents showing the threat to liberty or the alleged illegality.

  • The arrest report (auto de prisão em flagrante), if relevant to the case.

  • The formal charges (denúncia) or relevant case documents.

  • Previous decisions on requests for release or precautionary measures.

Habeas corpus requires pre-established proof of the facts presented, meaning the evidence needed to show the illegality must accompany the petition. As a rule, this remedy cannot be used to produce new evidence or conduct an in-depth investigation of the facts.

Proper documentation allows the court to examine the situation based on the concrete evidence presented.

What happens when habeas corpus is granted?

When the petition is granted, the decision must order the relief needed to end the unlawful coercion or prevent it from occurring. Depending on the situation, the effects may include:

  • Issuance of a release order

    When the arrest is found unlawful and there is no other legitimate reason to keep the person in custody.

  • Granting of a safe-conduct order

    When preventive habeas corpus is granted to prevent an unlawful threat to freedom of movement.

  • Annulment of a procedural step

    When a nullity affecting liberty is recognized, with the corresponding procedural consequences.

  • Halting an investigation or criminal case

    In exceptional situations, when the illegality is manifest and shown at the outset, as when the conduct is clearly not a crime, criminal liability is extinguished, or just cause is lacking.

Please note

Granting habeas corpus does not necessarily end the criminal case. Its effects are limited to the relief needed to remove the illegality found.

What are the limits of habeas corpus?

Although it is a broad instrument for protecting liberty, habeas corpus has its own limits.

The case law of the higher courts does not, as a rule, allow it to be used in place of the appeals provided by law or of criminal review (revisão criminal). In exceptional situations, it may be examined in the face of a flagrant illegality or abuse of power.

It is also not suited to an in-depth reassessment of evidence, hearing new witnesses, or producing evidence that depends on investigation. The analysis must start from documents and information already available that can show the alleged situation.

For this reason, choosing the right procedural instrument depends on the nature of the illegality, when it occurs, and the legal relief sought.

How does legal work on habeas corpus petitions proceed?

The work begins with an analysis of the situation involving the restriction on or threat to liberty, including court decisions, available documents, and the legal grounds related to the case.

Based on this assessment, the possible illegalities, the authority competent to review the petition, and the appropriate type of habeas corpus are identified. When appropriate, the work may involve:

  • Analysis of the lawfulness of the detention or threatened restriction of liberty.

  • Review of the grounds used to justify the measure.

  • Identification of procedural irregularities and lack of just cause.

  • Drafting and filing the habeas corpus petition with the competent court.

  • Requesting a preliminary order in situations that call for urgent relief.

  • Following the processing of the petition and the effects of the decision.

Please note

The strategy depends on the specific circumstances and the legal elements available, and the outcome of the petition cannot be predicted.

Need legal guidance in a situation involving a restriction on liberty?

Situations involving arrest or a threat to liberty require careful analysis of the legal grounds and documents. An assessment can show whether there is unlawful restraint and which measure is appropriate.

Chat on WhatsApp

Frequently asked questions about habeas corpus

Is habeas corpus free of charge?

Yes. Article 5, item LXXVII, of the Federal Constitution provides that habeas corpus actions are free of charge. This guarantee applies to the court action and does not eliminate any fees of professionals hired to provide legal assistance.

Do you need to be in custody to file a habeas corpus petition?

No. The remedy may also be used preventively when there is a concrete and imminent threat of an unlawful restriction on freedom of movement. In that case, the petition may seek a safe-conduct order to prevent the coercion.

Can habeas corpus be filed on behalf of someone else?

Yes. Article 654 of the Code of Criminal Procedure allows any person to file habeas corpus on their own behalf or on behalf of a third party. A family member or another person may therefore file the petition for someone who is suffering, or is threatened with, unlawful restraint.

How long does a habeas corpus decision take?

There is no single deadline that guarantees a decision on every petition. The timing depends on the competent court, the circumstances of the case, and the steps needed for review. In urgent situations, a preliminary order may be requested, but whether it is granted and how quickly it is reviewed depend on the court.

Does habeas corpus guarantee immediate release from custody?

No. Filing the petition does not lead to automatic release. Release depends on the court finding the detention unlawful and granting the writ. In addition, another legitimate ground for detention may prevent release, even when a particular coercion is removed.

Can habeas corpus be filed during a criminal investigation?

Yes. The remedy may be used during the investigation when there is a threat to or unlawful restriction on freedom of movement. In certain exceptional situations, it may also support a request to halt the police investigation (trancamento do inquérito), provided the illegality is clearly shown.

Can habeas corpus be used to challenge a criminal conviction?

In specific situations, it may be used to challenge illegalities that directly affect liberty, including after a conviction. However, it does not replace the appeals and criminal review provided by law. Case law allows it to be examined exceptionally in the face of flagrant illegality, abuse of power, or manifest unlawful restraint.

What happens if habeas corpus is denied?

Denial of the petition does not necessarily mean that all possible legal measures have been exhausted. Depending on the court that issued the decision, its reasoning, and the circumstances of the case, appeals or other procedural measures may be available.

Can habeas corpus be used while a sentence is being served?

Yes. It may be used when an illegality during sentence enforcement (execução penal) affects freedom of movement, as in certain cases of serving a sentence beyond the legal limit or a restriction kept in place without legal grounds. However, requests related to calculations, benefits, and enforcement incidents must be assessed under the appropriate procedural instrument.

BLOG

Keep exploring Criminal Law

Legal information on criminal defense, criminal case support, and other criminal law topics. This content is informational and does not replace an individual review of your case.

See all blog articles