
In U.S. immigration law, the government’s power to detain is substantial—but not unbounded; when custody becomes prolonged or is imposed without an individualized danger-or-flight-risk finding, federal courts routinely step in to restore due process, even in headline-grabbing cases involving serious public-safety allegations.
The Short Version
- Immigration detention is civil, not punitive; prolonged custody triggers due process protections that require case-by-case justification.
- Federal judges frequently order release or a new custody hearing when ICE detains under 8 U.S.C. § 1226(a) without proving danger or flight risk.
- A California federal court ordered immediate release of David Antonio Aviles Perez and required the government to justify any re-detention with clear and convincing evidence before an immigration judge.
- DHS publicly framed Aviles Perez as an MS-13 member wanted for aggravated murder, underscoring the policy tension between public safety and constitutional constraints.
What the court did and why it matters
In a habeas corpus proceeding—an ancient mechanism to test unlawful custody—a federal district court in California ordered the immediate release of David Antonio Aviles Perez from immigration detention and prohibited his re-detention unless, first, he receives an individualized hearing under 8 U.S.C. § 1226(a), and second, the government proves by clear and convincing evidence that he is a danger to the community or a flight risk. That sequence is not a loophole or a technicality; it is the contemporary expression of due process in civil confinement. The order does not resolve his underlying removability or foreign charges; it addresses only whether the government may continue to hold him without the requisite procedural safeguards.
This remedy aligns with a well-settled pattern in immigration habeas litigation: when detention stretches on without a meaningful custody determination, federal courts often order either outright release or a prompt redetermination hearing with the burden on the government, not the detainee, to justify continued confinement. The burden of “clear and convincing evidence” is deliberate—it reflects the Supreme Court’s broader civil commitment jurisprudence and recognizes that locking someone up is an extraordinary state action, even in the immigration context.
How immigration detention authority actually works
Immigration custody during removal proceedings is governed principally by 8 U.S.C. § 1226. Under subsection (a), detention is discretionary; ICE may detain or release on bond or conditions. That discretion is not unreviewable: the statute contemplates custody redetermination by an immigration judge. Over the past decade, federal courts wrestling with prolonged detention have filled statutory gaps with constitutional due process—requiring hearings after unreasonable delay, placing the burden on the government, and elevating the standard of proof to clear and convincing evidence before liberty is curtailed for months at a time.
Habeas corpus under 28 U.S.C. § 2241 is the vehicle that lets a federal court ask the narrow question: is this detention lawful today? It does not confer lawful status or decide the merits of deportation. It polices the boundary between civil administrative authority and punitive confinement. Guides and practice advisories cataloging recent cases show consistent outcomes: where detention under § 1226(a) becomes prolonged or procedurally deficient, courts order a hearing with the government carrying the evidentiary load, or, if the government cannot promptly provide one, release.
Public-safety allegations versus procedural safeguards
The Department of Homeland Security has publicly described Aviles Perez as an MS-13 member wanted in El Salvador for aggravated murder and noted prior arrests in California; officials warned that releasing him would endanger communities. DHS amplified that message on social media with sharply critical framing of the court’s action. Those statements are consequential to policy debates about risk, but they are not substitutes for the specific, individualized showing due process requires in a custody hearing. The court’s order squarely addresses that point: before the government continues confinement, it must present evidence to an immigration judge and carry the clear-and-convincing burden that this particular person poses a danger or will abscond.
There is no contradiction here. Public-safety concerns are precisely what the hearing is designed to adjudicate. If the government’s evidence is strong, the legal framework allows detention to continue; if it is not, liberty prevails pending the outcome of immigration proceedings. That calibration—risk justified by proof, not by label—is the constitutional equilibrium the courts have insisted upon in civil detention, immigration included.
Why courts order release rather than “hearing first”
Readers often ask why a judge would order immediate release instead of simply directing an expedited hearing. Two reasons recur. First, habeas relief remedies an ongoing constitutional violation; when custody is unlawful today, the remedy is to end it today, then set the terms for any future, lawful redetention. Second, judicial experience shows that without a firm release order, hearings can lag or be conducted under standards that invert the burden of proof. Modern orders therefore do two things in tandem: require a prompt § 1226(a) hearing, and specify that the government bears the clear-and-convincing burden on danger and flight risk—cementing the due process floor.
This is not unique to one district or judge. Surveyed decisions across jurisdictions reflect the same architecture: prolonged civil detention triggers heightened process; the government must justify confinement with evidence, not presumption; and judges will not allow de facto punishment to stand without the procedural safeguards our system requires for severe deprivations of liberty.
Are the courts lying too? US District Judge Edgardo Ramos (SDNY, Sept 2025) ruled ICE showed deliberate indifference to detainee Muñoz Materano’s serious infection, violating 5th Amendment due process; ordered immediate release.
— Em Jay (aka Tipsy Blowlightly) (@EmJay_Too) August 31, 2026
The larger pattern and what to watch next
Immigration enforcement today operates amid two cross-pressures: escalating claims of public danger and a constitutional tradition that treats liberty as the rule, confinement as the exception. Policy rhetoric tends to compress the two—asserting that dangerous labels should dictate custody—yet the legal system insists on process as the mechanism for separating allegation from proof. For cases like Aviles Perez, the next step is tightly defined: an immigration judge applies the right burden, weighs the government’s evidence, and either authorizes detention or sets conditions of release.
For the broader system, the lesson is durable. Congress built discretion into § 1226(a); courts supply the constitutional guardrails when that discretion hardens into prolonged, unexamined confinement. Agencies can and do protect public safety within this framework—by assembling evidence, presenting it promptly, and meeting a clear-and-convincing standard tailored to the specific individual. When they do not, habeas relief is not leniency; it is the Constitution doing its job.
Sources:
nypost.com, wfmd.com, dhs.gov, apps.cacd.uscourts.gov, fpdcdca.org, cdn.ca9.uscourts.gov, ca5.uscourts.gov



