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

# Ala. Code § 15-21-2 — Persons Entitled to Prosecute Writ - Persons Confined for Failure to Enter into Undertaking to Keep the Peace.

- **Citation**: Ala. Code § 15-21-2
- **Node Type**: section
- **Jurisdiction**: Alabama (state)
- **Code Body**: Code of Alabama 1975 (through the 2026 Regular Session) (Ala. Code)
- **Official Source**: [https://alison.legislature.state.al.us/code-of-alabama#15-21-2](https://alison.legislature.state.al.us/code-of-alabama#15-21-2)
- **Canonical URL**: [https://corpuslaw.us/codes/alabama/title-15/chapter-21/section-15-21-2](https://corpuslaw.us/codes/alabama/title-15/chapter-21/section-15-21-2)
- **Semantic URL**: [https://corpuslaw.us/codes/alabama/title-15/chapter-21/section-15-21-2](https://corpuslaw.us/codes/alabama/title-15/chapter-21/section-15-21-2)

## Hierarchy

Title 15 — Criminal Procedure. > Chapter 21 — Habeas Corpus.

## Text

15-21-2. Persons Entitled to Prosecute Writ - Persons Confined for Failure to Enter into Undertaking to Keep the Peace.

Any person confined in jail for failing to enter into an undertaking to keep the peace may prosecute a writ of habeas corpus as provided in this chapter; but such writ can be heard only by a judge of the circuit court, who may discharge the applicant, remand him to jail or reduce the amount of the undertaking as may seem right. If the amount of the undertaking is reduced, the sheriff must discharge the applicant upon the entering into the undertaking in the sum fixed by such judge.

(Code 1896, §4813; Code 1907, §7008; Code 1923, §4306; Code 1940, T. 15, §2.)
