
Release from unlawful arrest: when is an arrest unlawful?
Release from unlawful arrest is the remedy available when a deprivation of liberty breaches constitutional and legal requirements. The analysis considers how the arrest occurred and the grounds for custody.

What is release from unlawful arrest?
Release from unlawful arrest (relaxamento de prisão) is a court measure intended to end a deprivation of liberty found to be unlawful. The Federal Constitution, in Article 5, item LXV, requires the judicial authority to lift any unlawful arrest immediately.
In criminal procedure, Article 310, item I, of the Code of Criminal Procedure provides for this measure when the judge finds an illegality in an arrest in flagrante delicto. The analysis may also cover other types of custody, depending on their origin and the applicable grounds.
Please note
A finding of unlawfulness is not an acquittal and does not automatically end the investigation or the criminal case. Its immediate purpose is to end a restriction of liberty that has no legal basis.
When can an arrest be considered unlawful?
The lawfulness of an arrest depends on the specific circumstances and on compliance with the requirements set by law. Situations that may justify a request for release include:
No flagrante situation
An arrest in flagrante must fit one of the cases provided in Article 302 of the Code of Criminal Procedure. When the arrest occurs outside these situations, without circumstances that legally constitute flagrante, its validity may be challenged.
No valid court order
Outside the legal cases of arrest in flagrante and the exceptions provided in the Constitution, deprivation of liberty requires a written, reasoned order from a competent judicial authority. Failure to meet these requirements may undermine the lawfulness of the custody.
Violation of legal guarantees and formalities
An arrest must respect the rights of the detained person, including notice to the competent authorities, information about the reasons for the arrest, and access to legal assistance. Irregularities in these procedures may be relevant to the analysis of lawfulness, depending on their nature and impact.
Please note
Not every formal irregularity automatically leads to release from unlawful arrest. It is necessary to examine the nature of the defect, the circumstances in which it occurred, and its legal relevance.
How does a request for release from unlawful arrest work?
The request depends on identifying an illegality in the deprivation of liberty and presenting the legal grounds that justify correcting it. It usually follows these stages:
Circumstances
The defense examines how the arrest occurred, the reasons given by the authorities, and whether there is a legal basis for the restriction of liberty.
Documents
The arrest report (auto de prisão em flagrante), mandatory notices, police records, and court decisions related to the custody are examined, as applicable.
Legal grounds
Once a possible illegality is identified, the defense presents the legal arguments and the evidence showing why the arrest should not be maintained.
Court review
The competent judge or court examines the grounds presented and rules on the lawfulness of the custody. If it finds the custody unlawful, it must order release from unlawful arrest.
Please note
The appropriate measures and procedural instruments vary according to the origin of the arrest and the point at which the illegality is identified.
What happens after release from unlawful arrest?
When the judicial authority finds the arrest unlawful, it orders release from unlawful arrest and the issuance of a release order, unless there is another, independent legal ground that justifies continued custody.
However, the decision does not necessarily end the investigation or the criminal case. The inquiry may continue, subject to legal guarantees and the consequences of the illegality found.
Evidence obtained directly as a result of an unlawful arrest may also be challenged when there is a causal link between the illegality and the evidence produced, subject to the exceptions provided by law.
How does release from unlawful arrest differ from revoking pretrial detention?
Although both measures may result in the release of the person under investigation or accused, their grounds are different.
Release from unlawful arrest applies when the arrest itself is unlawful. Revocation of pretrial detention is at issue when the grounds that justified a custody originally ordered no longer exist or are no longer sufficient to maintain it, under Article 316 of the Code of Criminal Procedure.
Habeas corpus, in turn, is a constitutional remedy used to protect freedom of movement against illegality or abuse of power. Its use depends on the circumstances and on the legal measure suited to the case.
How does legal assistance work in requests for release from unlawful arrest?
Legal work follows the case from the analysis of the arrest to the effects of the decision. It usually takes place in three stages:
Analysis
Legal work begins with an analysis of the circumstances of the arrest and of the documents on which the restriction of liberty is based.
Requests
The defense identifies possible illegalities, examines the appropriate procedural instruments, and files the necessary requests with the competent authority.
Consequences
It considers the consequences of the decision, including whether to challenge evidence or other procedural steps that may have been affected by the illegality found.
Please note
Each case requires an individual assessment, based on the available information and the applicable legal grounds.
Need guidance about a possibly unlawful arrest?
Assessing whether an arrest is lawful requires attention to how it occurred and the grounds for custody. Legal assistance helps identify irregularities and examine the measures available.
Frequently asked questions about release from unlawful arrest
Does a finding of unlawful arrest guarantee immediate release?
When the court finds the arrest unlawful, the detained person must be ordered released. However, another valid arrest warrant or an independent legal ground may prevent immediate release.
Does any irregularity in a flagrante arrest allow a request for release?
No. A formal flaw, on its own, does not necessarily mean the arrest is unlawful. It is necessary to examine how relevant the problem is, which guarantees were affected, and its legal impact on the custody.
Can the request be made during the custody hearing?
Yes. The custody hearing (audiência de custódia) is an opportunity to review the lawfulness of the arrest in flagrante. At the hearing, the defense may raise challenges and request release when it identifies an illegality. The review may also take place later, depending on the procedural circumstances.
If the arrest is lifted, does the criminal case end?
No. Release from unlawful arrest ends the unlawful detention, but it does not mean the person was acquitted or that the investigation and the case will necessarily end. Those issues depend on their own grounds.
If the flagrante arrest is converted into pretrial detention, can its lawfulness still be challenged?
Yes. However, conversion into pretrial detention creates a new court order as the basis for custody. The defense must therefore also examine the grounds and validity of the decision ordering pretrial detention, as well as any earlier illegalities.
Does an unlawful arrest make all evidence in the case invalid?
Not necessarily. Article 157 of the Code of Criminal Procedure sets rules on the inadmissibility of unlawfully obtained evidence and evidence derived from it. To challenge later evidence, it is necessary to examine its causal link to the illegality and whether there is an independent source or another legal exception.
What is the difference between release from unlawful arrest and provisional release?
Release from unlawful arrest results from a finding that the arrest is unlawful. Provisional release (liberdade provisória), on the other hand, may be granted when the flagrante arrest is valid but there are not enough grounds to convert it into pretrial detention, and it may come with bail or other precautionary measures, as appropriate.
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.

Vicarious violence: what changes under the new law creating the crime of vicaricide
In 2026, Law No. 15,384/2026 was enacted, amending the Maria da Penha Law (Law 11,340/2006), the Penal Code, and the Heinous Crimes Law to address an issue that until then had no specific criminal definition in Brazilian law: vicarious violence.
Read article






