> 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).

# M.G.L. c. 248, § 1 — Persons entitled to writ; exceptions

- **Citation**: M.G.L. c. 248, § 1
- **Node Type**: section
- **Jurisdiction**: Massachusetts (state)
- **Code Body**: Massachusetts General Laws (through amendments passed before May 31, 2026) (M.G.L.)
- **Official Source**: [https://malegislature.gov/Laws/GeneralLaws/PartIII/TitleIV/Chapter248/Section1](https://malegislature.gov/Laws/GeneralLaws/PartIII/TitleIV/Chapter248/Section1)
- **Canonical URL**: [https://corpuslaw.us/codes/massachusetts/part-iii/title-iv/chapter-c-248/section-c-248-1](https://corpuslaw.us/codes/massachusetts/part-iii/title-iv/chapter-c-248/section-c-248-1)
- **Semantic URL**: [https://corpuslaw.us/codes/massachusetts/part-iii/title-iv/chapter-c-248/section-c-248-1](https://corpuslaw.us/codes/massachusetts/part-iii/title-iv/chapter-c-248/section-c-248-1)

## Hierarchy

Part Part III — COURTS, JUDICIAL OFFICERS AND PROCEEDINGS IN CIVIL CASES > Title Title IV — CERTAIN WRITS AND PROCEEDINGS IN SPECIAL CASES > Chapter c. 248 — HABEAS CORPUS AND PERSONAL LIBERTY

## Text

c. 248, § 1. Persons entitled to writ; exceptions

Section 1. Whoever is imprisoned or restrained of his liberty may, as of right and of course, prosecute a writ of habeas corpus, according to this chapter, to obtain release from such imprisonment or restraint, if it proves to be unlawful, unless—

First, He has been committed for treason or felony, or on suspicion thereof, or as accessory before the fact to a felony, and the cause has been plainly expressed in the warrant of commitment.

Second, He has been convicted or is in execution upon legal process, civil or criminal.

Third, He has been committed on mesne process in a civil action in which he was liable to arrest and imprisonment, unless excessive and unreasonable bail was required.
