> 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, § 25 — Scope of chapter

- **Citation**: M.G.L. c. 248, § 25
- **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/Section25](https://malegislature.gov/Laws/GeneralLaws/PartIII/TitleIV/Chapter248/Section25)
- **Canonical URL**: [https://corpuslaw.us/codes/massachusetts/part-iii/title-iv/chapter-c-248/section-c-248-25](https://corpuslaw.us/codes/massachusetts/part-iii/title-iv/chapter-c-248/section-c-248-25)
- **Semantic URL**: [https://corpuslaw.us/codes/massachusetts/part-iii/title-iv/chapter-c-248/section-c-248-25](https://corpuslaw.us/codes/massachusetts/part-iii/title-iv/chapter-c-248/section-c-248-25)

## 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, § 25. Scope of chapter

Section 25. This chapter shall not affect the power of the supreme judicial court, or the superior court, or a justice thereof, to issue a writ of habeas corpus in its discretion, and thereupon grant bail to a person for whatever cause he has been committed or restrained, or to discharge him as law and justice require. The court shall have no power to issue a writ of habeas corpus, at its discretion for—a person who has been committed by the governor and council, the senate, or the house of representatives in the manner and for the causes mentioned in the constitution, or a person who is imprisoned or restrained of his liberty pursuant to a criminal conviction.

This chapter shall not affect the power of any court or magistrate to issue a writ of habeas corpus, when necessary to bring before it a prisoner for trial in a pending criminal case; or to bring a prisoner to be examined as a witness in a suit or proceeding, civil or criminal, pending before the court, if the personal attendance and examination of the witness is necessary for the attainment of justice.
