What Is a Detention Order? Criminal and Immigration Law

A detention order is a formal directive from a judge or government official requiring that a person stay in custody instead of being released. In the federal criminal system, a judge issues one after concluding that no bail conditions can reasonably ensure the defendant will appear for trial or keep the community safe. In immigration proceedings, a detention order holds a noncitizen in custody while the government decides whether to remove them from the country. The two systems share a name and an outcome, but the governing statutes, standards of proof, and avenues for challenge are different.

Detention Orders in Federal Criminal Cases

Federal pretrial detention is governed by the Bail Reform Act of 1984, codified at 18 U.S.C. § 3142. A judge does not hold a detention hearing automatically. The government has to ask for one, and it can only ask in specific situations: when the charge involves a crime of violence, an offense carrying a possible life or death sentence, a drug offense punishable by ten or more years, any felony where the defendant has two or more prior qualifying convictions, or a felony involving a minor victim, a firearm, or another dangerous weapon. The judge can also set a hearing on their own when there is a serious risk of flight or obstruction of justice.1Office of the Law Revision Counsel. 18 USC 3142 – Release or Detention of a Defendant Pending Trial

The hearing takes place at the defendant’s first court appearance unless someone asks for a brief continuance. The defendant can request up to five days; the government gets up to three. The defendant stays detained during any continuance.1Office of the Law Revision Counsel. 18 USC 3142 – Release or Detention of a Defendant Pending Trial

The Rebuttable Presumption

For certain serious charges, the law tilts the field toward detention. If the judge finds probable cause that the defendant committed a major drug trafficking offense (one carrying ten or more years), a firearms offense under 18 U.S.C. § 924(c), a federal crime of terrorism, a human trafficking offense carrying twenty or more years, or certain offenses against minors, a rebuttable presumption applies. The law presumes no release conditions will work. The defendant can present evidence to overcome it, but in practice the climb is steep.1Office of the Law Revision Counsel. 18 USC 3142 – Release or Detention of a Defendant Pending Trial

What the Judge Weighs

Whether or not a presumption applies, the judge evaluates four categories of information:

  • The nature of the charged offense, including whether it is violent or involves drugs, firearms, or a minor.
  • The weight of the government’s evidence.
  • The defendant’s background: family ties, employment, community connections, criminal history, mental health, substance abuse, and whether the person was already on probation or parole when arrested.
  • The danger to any individual or to the community if the defendant is released.

These factors interact. A person charged with a serious drug offense but with deep community ties and no criminal record may still win release. Someone charged with a lesser offense who has a long history of failing to appear may not.1Office of the Law Revision Counsel. 18 USC 3142 – Release or Detention of a Defendant Pending Trial

Standards of Proof

If the government argues the defendant is a danger to the community, it must prove that claim by clear and convincing evidence, a standard well above the typical civil threshold.1Office of the Law Revision Counsel. 18 USC 3142 – Release or Detention of a Defendant Pending Trial For flight risk, the statute does not spell out a standard, but federal courts widely apply a preponderance of the evidence test: more likely than not that the defendant would flee.

What Goes in the Order

When a judge orders detention, the order must contain written findings of fact and a written statement of reasons. The defendant is committed to the custody of the Attorney General and confined, to the extent practicable, in a facility separate from people already serving sentences or awaiting appeal.1Office of the Law Revision Counsel. 18 USC 3142 – Release or Detention of a Defendant Pending Trial Those written findings matter: errors in them can be the basis for a successful challenge later.

Detention Orders in Immigration Cases

Immigration detention operates under civil law rather than criminal law, but the practical effect is the same. The rules come primarily from 8 U.S.C. § 1226, which splits noncitizens into two broad categories: those the government may detain at its discretion, and those the government must detain.

Discretionary Detention and Bond

When a noncitizen is arrested on a warrant, ICE makes an initial decision about whether to hold or release them. On the discretionary track, ICE can continue to detain the person, release them on a bond of at least $1,500, or grant conditional parole.2Office of the Law Revision Counsel. 8 USC 1226 – Apprehension and Detention of Aliens If ICE sets the bond too high or denies release entirely, the person can ask an immigration judge to reconsider.3eCFR. 8 CFR 1003.19 – Custody/Bond

Mandatory Detention

Some noncitizens get no bond option. Under 8 U.S.C. § 1226(c), the government must take into custody any noncitizen who is removable because of certain criminal or terrorism-related grounds. The main categories include people convicted of crimes involving moral turpitude with a sentence of at least one year, aggravated felonies, controlled substance offenses, firearms offenses, and terrorism-related activity.2Office of the Law Revision Counsel. 8 USC 1226 – Apprehension and Detention of Aliens Mandatory detention attaches when the person is released from criminal custody, whether on parole, probation, or supervised release.

The only statutory exception is narrow. The government can release a mandatorily detained person if doing so is necessary to protect a witness cooperating with a major criminal investigation, and even then the person must show they will not be dangerous and will appear for proceedings.2Office of the Law Revision Counsel. 8 USC 1226 – Apprehension and Detention of Aliens

Detention After a Final Removal Order

Once a noncitizen has a final removal order, a separate framework under 8 U.S.C. § 1231 kicks in. The government has a 90-day “removal period” to physically remove the person, and detention during that period is generally required.4Office of the Law Revision Counsel. 8 USC 1231 – Detention and Removal of Aliens Ordered Removed The government may continue detention past 90 days if removal cannot be completed in that window, but there are constitutional limits. In Zadvydas v. Davis, the Supreme Court held that detention under § 1231 cannot be indefinite. Six months is the presumptively reasonable period. After six months, if the noncitizen can show there is no significant likelihood of removal in the reasonably foreseeable future, the government must either justify continued detention or release the person under supervision.5Justia. Zadvydas v Davis, 533 US 678 (2001)

How Criminal and Immigration Detention Differ

The two systems share the word “detention” but diverge in ways that catch people off guard.

The biggest difference is the right to a lawyer. In a federal criminal case, the Sixth Amendment guarantees appointed counsel to any defendant who cannot afford one. In immigration proceedings, a noncitizen has the right to hire a lawyer, but the government does not pay for one. That rule appears in both 8 U.S.C. § 13626Office of the Law Revision Counsel. 8 USC 1362 – Right to Counsel and 8 U.S.C. § 1229a(b)(4), which states that a noncitizen has “the privilege of being represented, at no expense to the Government, by counsel of the alien’s choosing.”7Office of the Law Revision Counsel. 8 USC 1229a – Removal Proceedings In practice, many detained noncitizens navigate complex removal proceedings without any legal representation at all.

Criminal detention is also temporary by design. It lasts until trial ends. Immigration detention can stretch for months or years while removal proceedings and appeals run their course. And because immigration cases are civil, many constitutional protections that criminal defendants rely on do not apply the same way.

Challenging a Criminal Detention Order

A defendant ordered detained has two routes under the Bail Reform Act. If a magistrate judge issued the order, the defendant can file a motion for revocation or amendment with the district court that has original jurisdiction over the case. The district court reviews the decision fresh and must rule promptly.8Office of the Law Revision Counsel. 18 USC 3145 – Review and Appeal of a Release or Detention Order This is the most common path, and defense attorneys often use it after gathering additional evidence about the defendant’s ties to the community, employment, or ability to comply with supervision.

Either side can also appeal a detention or release order to a federal appellate court. The appeal follows the general appellate procedures in 28 U.S.C. § 1291 and must be resolved promptly.8Office of the Law Revision Counsel. 18 USC 3145 – Review and Appeal of a Release or Detention Order Most detention fights are resolved at the district court level; appellate review is less common but available when the district court’s reasoning is questionable.

Challenging an Immigration Detention Order

The options for fighting immigration detention depend on which track applies.

Bond Redetermination

A noncitizen in discretionary detention can request a bond redetermination hearing before an immigration judge. The request can be made orally, in writing, or by telephone at the judge’s discretion. At the hearing, the judge decides whether the person is a flight risk or a danger to the community, then grants release on bond, lowers the bond amount, or denies release. A denial, or an unreasonably high bond, can be appealed to the Board of Immigration Appeals.3eCFR. 8 CFR 1003.19 – Custody/Bond

Joseph Hearings for Mandatory Detention

People classified under mandatory detention face a harder fight, but they are not without recourse. Under the Board of Immigration Appeals’ decision in Matter of Joseph, a noncitizen can request a hearing to argue they do not belong in a mandatory detention category. There is no master list matching every state criminal conviction to a federal immigration detention category, and ICE sometimes gets the classification wrong. A Joseph hearing lets the person argue that their particular conviction does not actually trigger mandatory detention. If they succeed, the case shifts to the discretionary track where bond becomes possible.9U.S. Department of Justice. Matter of Joseph, 22 I&N Dec. 799 (BIA 1999)

Habeas Corpus

In both criminal and immigration cases, a detained person can file a petition for a writ of habeas corpus in federal district court under 28 U.S.C. § 2241. Habeas challenges the lawfulness of the detention itself, not just the conditions or amount of bond, and can raise constitutional arguments such as a claim that detention has gone on too long without justification.10Office of the Law Revision Counsel. 28 USC 2241 – Power to Grant Writ Habeas is the tool that puts teeth in the Zadvydas six-month framework: after six months of post-removal-order detention with no realistic prospect of removal, a habeas petition is typically how the noncitizen forces the government to justify continued custody.

What to Do Right After a Detention Order

The hours after a detention order are chaotic, and the people most affected are often the least prepared. A few practical points:

  • Find out where the person is being held. In criminal cases, the U.S. Marshals Service manages pretrial detainees. In immigration cases, ICE operates a detainee locator system. Family members should contact the relevant agency quickly, because transfers between facilities happen fast and without notice.
  • Get a lawyer involved early. A court-appointed attorney will be assigned in criminal cases if the defendant qualifies. In immigration cases, there is no automatic appointment, so family or community organizations have to find and retain an immigration attorney. Pro bono immigration legal services exist in most major metro areas and are one of the most important resources for detained noncitizens who cannot afford counsel.
  • Have the order reviewed carefully. Criminal detention orders must contain written findings, and mistakes in those findings can support a challenge. In immigration cases, verifying whether ICE correctly classified the person under mandatory detention is the first step toward a Joseph hearing.

Detention carries consequences beyond the obvious loss of freedom. A detained person cannot work, may lose housing, and faces pressure to accept unfavorable plea deals or stipulated removal orders just to end the custody. Understanding which rules apply, and which challenges are available, gives the best chance of mounting an effective response.