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

# Md. Code, Courts and Judicial Proceedings § 3-704

- **Citation**: Md. Code, Courts and Judicial Proceedings § 3-704
- **Node Type**: section
- **Jurisdiction**: Maryland (state)
- **Code Body**: Code of Maryland (Aug. 2026 snapshot) (Md. Code)
- **Official Source**: [https://mgaleg.maryland.gov/mgawebsite/Laws/StatuteText?article=gcj&section=3-704&enactments=false](https://mgaleg.maryland.gov/mgawebsite/Laws/StatuteText?article=gcj&section=3-704&enactments=false)
- **Canonical URL**: [https://corpuslaw.us/codes/maryland/courts-and-judicial-proceedings/title-3/section-3-704](https://corpuslaw.us/codes/maryland/courts-and-judicial-proceedings/title-3/section-3-704)
- **Semantic URL**: [https://corpuslaw.us/codes/maryland/courts-and-judicial-proceedings/title-3/section-3-704](https://corpuslaw.us/codes/maryland/courts-and-judicial-proceedings/title-3/section-3-704)

## Hierarchy

Article Courts and Judicial Proceedings — Courts and Judicial Proceedings > Title 3

## Text

(a) On return of a writ of habeas corpus and production of a person and cause of his detention before a judge, the judge shall immediately inquire into the legality and propriety of the confinement or detention.

(b) If it appears to the judge that the person is detained without legal warrant or authority, he shall release or discharge the person immediately.

(c) If the judge considers the detention lawful and proper, the person shall be:

(1) Remanded to custody; or

(2) Admitted to bail.

(d) If the person is admitted to bail, the judge shall take a recognizance for his appearance in court and transmit it to a court having jurisdiction over the offense charged.
