
Revoking pretrial detention: when can continued detention be challenged?
Pretrial detention (prisão preventiva) is a precautionary measure restricting liberty before a criminal case ends; it cannot serve as an early sentence. When its grounds cease to exist, revocation may be requested.

What is revocation of pretrial detention?
Revocation of pretrial detention is the court measure that seeks to end a precautionary detention when there are no longer legal grounds to justify keeping it in place.
Article 316 of the Code of Criminal Procedure provides that the judge may revoke pretrial detention, on the court's own initiative or at the request of the parties, upon finding, during the investigation or the case, that the reasons for ordering it no longer remain.
This means the need for detention must be assessed according to the specific, current circumstances of the case. If the grounds that justified restricting liberty cease to exist, continued custody may be challenged.
What requirements justify keeping a person in pretrial detention?
Pretrial detention depends on meeting the requirements set out in the Code of Criminal Procedure. Keeping it in place requires concrete grounds showing that the measure is necessary. The main aspects considered include:
Proof of the crime and indications of who committed it
There must be evidence indicating that the criminal offense occurred and sufficient indications that the person under investigation or accused took part in it.
Concrete risk arising from freedom
Detention must be based on a showing of danger arising from the person's freedom, considering the risks to public order, the economic order, the gathering of evidence, or the enforcement of criminal law.
Necessity and suitability of the measure
The restriction of liberty must be necessary and suited to the circumstances of the case. Pretrial detention should be applied only when other precautionary measures are not sufficient to achieve the intended purpose.
Individualized and current reasoning
The decision must give concrete reasons related to the situation under review, considering new or contemporaneous facts that justify keeping the measure in place.
Please note
The abstract seriousness of the offense, on its own, is not a sufficient ground.
When can revocation of pretrial detention be requested?
Whether revocation is possible depends on an analysis of the grounds that justified the detention and of changes during the investigation or the case. Situations that may justify the request include:
Grounds for detention no longer exist
When the circumstances that justified custody no longer exist, such as concrete risks to the gathering of evidence or to the enforcement of criminal law, the need to keep the measure in place may be reassessed.
Lack of concrete reasoning
When the decision relies on generic justifications, repeats abstract arguments, or fails to show the link between the facts of the case and the need for detention, its reasoning may be challenged.
Lack of contemporaneity
Continued detention requires that the risks identified remain present. Past facts, without a showing that they still pose a current danger, may not be enough to justify keeping the measure in place.
Change in the circumstances of the case
Relevant changes during the investigation or the criminal case may alter the need for detention. This can happen, for example, when evidence has already been produced, witnesses have been heard, or circumstances previously considered relevant no longer exist.
Please note
The analysis must consider all the elements of the case as a whole. None of these situations, on its own, guarantees revocation of the detention.
Can pretrial detention be replaced with other precautionary measures?
Yes. When full restriction of liberty is not necessary, but some court monitoring or control is still needed, pretrial detention may be replaced with less restrictive precautionary measures.
Article 319 of the Code of Criminal Procedure provides various alternatives, which may be applied alone or together, depending on the circumstances. They include:
Periodic court appearances: an obligation to appear on the dates and under the conditions set to report and account for one's activities.
Restriction on access to places: a ban on going to specific locations.
Prohibition on leaving the judicial district (comarca): an obligation to remain in the area when necessary for the investigation or the evidentiary phase.
Prohibition on contact: a ban on contacting certain people, when necessary to prevent risks related to the case.
Home confinement: an obligation to stay at home at night and on days off.
Electronic monitoring: tracking the person's location with an electronic device.
The choice of measures depends on the precautionary purpose sought and on whether they are sufficient to reduce the risks identified in the case.
How does a request to revoke pretrial detention work?
The request starts with an analysis of the decision that ordered the detention and ends with the court's ruling. It usually follows these stages:
Analysis
The request begins with an analysis of the decision that ordered the detention and the elements that justified it.
Current situation
The current circumstances of the case are also examined to determine whether the grounds for custody are still present.
Request
The defense may file a reasoned request with the competent judge or court, showing why the detention should end.
Timing
The request may be filed during the investigation or while the criminal case is under way, whenever there are grounds to challenge continued detention.
Decision
After its review, the court may revoke the measure, replace it with other precautionary measures, or maintain custody, in a reasoned decision.
Please note
These stages describe the usual path of the request and may vary according to the circumstances of the case, the competent court, and the procedural stage.
Must pretrial detention be reviewed every 90 days?
Yes. Article 316, sole paragraph, of the Code of Criminal Procedure requires the need for continued pretrial detention to be reviewed every 90 days, on the court's own initiative and in a reasoned decision by the court that ordered it. According to the Federal Supreme Court, this duty applies until the appellate court (second instance) issues its judgment.
The purpose of this review is to verify whether the reasons that justify the restriction of liberty are still present, considering the current circumstances of the case.
Periodic review does not replace the defense's ability to file a request for revocation at any time when it identifies concrete reasons to challenge continued detention.
Please note
However, the Federal Supreme Court has held that failure to meet this deadline does not automatically revoke the detention or guarantee immediate release. In that situation, the competent court must be asked to reassess whether the grounds for custody are lawful and still current.
What is the difference between revocation, release from unlawful arrest, and habeas corpus?
Although all three measures relate to protecting liberty, they have different grounds and purposes. The three measures are:
Revocation
Seeks to end a precautionary detention when the reasons that justify keeping it no longer exist, under Article 316 of the Code of Criminal Procedure.
Release from unlawful arrest
Used when the detention is unlawful, allowing the undue restriction of liberty to be lifted, under Article 5, item LXV, of the Federal Constitution.
Habeas corpus
A constitutional guarantee used to protect freedom of movement against unlawful violence or coercion, current or imminent, which may be filed in the cases allowed by law.
Choosing the appropriate measure depends on the nature of the restriction on liberty, the legal grounds involved, and the procedural stage.
How does legal work on requests to revoke pretrial detention proceed?
The work begins with an analysis of the decision that ordered the detention, the grounds used, and the elements of the investigation or criminal case. Based on this assessment, possible changes in the circumstances of the case are identified.
The work also identifies whether the precautionary risks persist and which alternative measures would serve the purposes of the case. Depending on the situation, it may involve:
Analysis of the lawfulness and reasoning of the pretrial detention.
Checking whether the requirements that justify custody still remain.
Assessment of new facts and circumstances that may change the need for the measure.
Drafting and filing the request for revocation.
An alternative request for replacement with non-custodial precautionary measures.
Following the request and the effects of the court's decision.
Please note
Each case requires an individual assessment, based on the available information and the applicable legal grounds.
Need legal guidance to request revocation of pretrial detention?
Keeping pretrial detention in place requires concrete, individualized legal grounds. A legal analysis can show whether custody is still justified or whether there are grounds to request revocation or replacement.
Frequently asked questions about revoking pretrial detention
Does revocation of pretrial detention guarantee immediate release?
Not necessarily. Revocation lifts the pretrial detention covered by the decision, but actual release depends on there being no other legal ground for keeping the person in custody. Alternative precautionary measures may also be imposed, depending on the circumstances of the case.
Can revocation be requested during the criminal investigation?
Yes. Article 316 of the Code of Criminal Procedure allows pretrial detention to be revoked during the investigation or while the criminal case is under way, whenever reasons are identified that justify ending the measure.
Does being a first-time offender with a fixed address guarantee revocation?
No. Being a first-time offender, having a fixed address, and working in a profession may be considered in the court's assessment, but they do not, on their own, guarantee revocation. The grounds for detention and the concrete risks related to freedom must be analyzed.
Can pretrial detention be revoked after several months?
Yes. The need for the measure must be reassessed according to the current circumstances of the case, regardless of how much time has passed. However, the passage of time, on its own, does not lead to revocation: it must be examined whether the grounds that justify detention are still present.
Can pretrial detention be ordered again after it has been revoked?
Yes. Article 316 of the Code of Criminal Procedure itself allows it to be ordered again when reasons arise that justify the measure. This requires a showing of concrete legal grounds and a new reasoned decision.
What happens when the request for revocation is denied?
When the request is denied, the defense may assess the available procedural measures, considering the grounds of the decision and the particulars of the case. Depending on the situation, it may be possible to appeal or to use habeas corpus to challenge any unlawful restraint.
Can pretrial detention be replaced with house arrest?
Yes, in the cases provided in Articles 317, 318, and 318-A of the Code of Criminal Procedure. Replacement depends on meeting the legal requirements, providing the necessary documents, and a court's review. House arrest (prisão domiciliar) is still a form of restriction of liberty and is not the same as revoking pretrial detention.
Does revoking pretrial detention end the criminal case?
No. Revocation lifts the precautionary detention but does not automatically end the investigation or the criminal case. The case may continue normally, with the person released pending trial and possibly subject to other precautionary measures.
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






