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

# Mont. Code Ann. § 46-22-101 — Applicability of writ of habeas corpus

- **Citation**: Mont. Code Ann. § 46-22-101
- **Node Type**: section
- **Jurisdiction**: Montana (state)
- **Code Body**: Montana Code Annotated (2025, updated August 2026) (MCA)
- **Official Source**: [https://mca.legmt.gov/bills/mca/title_0460/chapter_0220/part_0010/section_0010/0460-0220-0010-0010.html](https://mca.legmt.gov/bills/mca/title_0460/chapter_0220/part_0010/section_0010/0460-0220-0010-0010.html)
- **Canonical URL**: [https://corpuslaw.us/codes/montana/title-46/chapter-22/part-1/section-46-22-101](https://corpuslaw.us/codes/montana/title-46/chapter-22/part-1/section-46-22-101)
- **Semantic URL**: [https://corpuslaw.us/codes/montana/title-46/chapter-22/part-1/section-46-22-101](https://corpuslaw.us/codes/montana/title-46/chapter-22/part-1/section-46-22-101)

## Hierarchy

Title 46 — CRIMINAL PROCEDURE > Chapter 22 — HABEAS CORPUS > Part 1 — Availability of Writ

## Text

46-22-101. Applicability of writ of habeas corpus

(1) Except as provided in subsection (2), every person imprisoned or otherwise restrained of liberty within this state may prosecute a writ of habeas corpus to inquire into the cause of imprisonment or restraint and, if illegal, to be delivered from the imprisonment or restraint.

(2) The writ of habeas corpus is not available to attack the validity of the conviction or sentence of a person who has been adjudged guilty of an offense in a court of record and has exhausted the remedy of appeal. The relief under this chapter is not available to attack the legality of an order revoking a suspended or deferred sentence.

En. 95-2701 by Sec. 1, Ch. 196, L. 1967; R.C.M. 1947, 95-2701; amd. Sec. 7, Ch. 195, L. 1981; amd. Sec. 2, Ch. 211, L. 1985; amd. Sec. 233, Ch. 800, L. 1991.
