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

# SDCL § 21-27-1 — Right of person detained or imprisoned to apply for writ.

- **Citation**: SDCL § 21-27-1
- **Node Type**: section
- **Jurisdiction**: South Dakota (state)
- **Code Body**: South Dakota Codified Laws (through session laws effective 2026-09-03) (SDCL)
- **Official Source**: [https://sdlegislature.gov/Statutes/21-27-1](https://sdlegislature.gov/Statutes/21-27-1)
- **Canonical URL**: [https://corpuslaw.us/codes/south-dakota/title-21/chapter-21-27/section-21-27-1](https://corpuslaw.us/codes/south-dakota/title-21/chapter-21-27/section-21-27-1)
- **Semantic URL**: [https://corpuslaw.us/codes/south-dakota/title-21/chapter-21-27/section-21-27-1](https://corpuslaw.us/codes/south-dakota/title-21/chapter-21-27/section-21-27-1)

## Hierarchy

Title 21 — JUDICIAL REMEDIES > Chapter 21-27 — HABEAS CORPUS

## Text

21-27-1. Right of person detained or imprisoned to apply for writ.

Any person committed or detained, imprisoned or restrained of his liberty, under any color or pretense whatever, civil or criminal, except as provided herein, may apply to the Supreme or circuit court, or any justice or judge thereof, for a writ of habeas corpus.

CCrimP 1877, §§ 671, 672; CL 1887, §§ 7839, 7840; RCCrimP 1903, §§ 771, 772; RC 1919, §§ 4978, 4979; SDC 1939 & Supp 1960, § 37.5501; SL 1983, ch 169, § 1.
