> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# 34-B M.R.S. §3804 — Habeas corpus

- **Citation**: 34-B M.R.S. §3804
- **Node Type**: section
- **Jurisdiction**: Maine (state)
- **Code Body**: Maine Revised Statutes (through October 1, 2026) (M.R.S.)
- **Official Source**: [https://legislature.maine.gov/statutes/34-B/title34-Bsec3804.html](https://legislature.maine.gov/statutes/34-B/title34-Bsec3804.html)
- **Canonical URL**: [https://corpuslaw.us/codes/maine/title-34-b/chapter-3/subchapter-4/article-1/section-3804](https://corpuslaw.us/codes/maine/title-34-b/chapter-3/subchapter-4/article-1/section-3804)
- **Semantic URL**: [https://corpuslaw.us/codes/maine/title-34-b/chapter-3/subchapter-4/article-1/section-3804](https://corpuslaw.us/codes/maine/title-34-b/chapter-3/subchapter-4/article-1/section-3804)

## Hierarchy

Title 34-B — BEHAVIORAL AND DEVELOPMENTAL SERVICES > Chapter 3 — MENTAL HEALTH > Subchapter 4 — HOSPITALIZATION > Article 1 — GENERAL PROVISIONS

## Text

3804. Habeas corpus

Any person detained pursuant to this subchapter is entitled to the writ of habeas corpus, upon proper petition by the person or by a friend to any justice generally empowered to issue the writ of habeas corpus in the county in which the person is detained.

PL 1983, c. 459, §7 (NEW). RR 2019, c. 2, Pt. B, §96 (COR).
