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

# NMSA 1978, § 44-1-1 — [Who may obtain writ.]

- **Citation**: NMSA 1978, § 44-1-1
- **Node Type**: section
- **Jurisdiction**: New Mexico (state)
- **Code Body**: New Mexico Statutes Annotated 1978 (through the 2026 session) (NMSA 1978)
- **Official Source**: [https://nmonesource.com/nmos/nmsa-unanno/en/item/18545/index.do#!b/44-1-1](https://nmonesource.com/nmos/nmsa-unanno/en/item/18545/index.do#!b/44-1-1)
- **Canonical URL**: [https://corpuslaw.us/codes/new-mexico/chapter-44/article-1/section-44-1-1](https://corpuslaw.us/codes/new-mexico/chapter-44/article-1/section-44-1-1)
- **Semantic URL**: [https://corpuslaw.us/codes/new-mexico/chapter-44/article-1/section-44-1-1](https://corpuslaw.us/codes/new-mexico/chapter-44/article-1/section-44-1-1)

## Hierarchy

Chapter 44 — Miscellaneous Civil Law Matters > Article 1 — Habeas Corpus

## Text

44-1-1. [Who may obtain writ.]

Every person imprisoned or otherwise restrained of his liberty, except in the cases in the following section specified, may prosecute a writ of habeas corpus, according to the provisions of this chapter, to obtain relief from such imprisonment or restraint, if it proves to be unlawful.

Laws 1884, ch. 1, § 1; C.L. 1884, § 2012; C.L. 1897, § 2781; Code 1915, § 2589; C.S. 1929, § 63-101; 1941 Comp., § 25-1101; 1953 Comp., § 22-11-1.
