> 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 § 5-1004

- **Citation**: Md. Code, Courts and Judicial Proceedings § 5-1004
- **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=5-1004&enactments=false](https://mgaleg.maryland.gov/mgawebsite/Laws/StatuteText?article=gcj&section=5-1004&enactments=false)
- **Canonical URL**: [https://corpuslaw.us/codes/maryland/courts-and-judicial-proceedings/title-5/section-5-1004](https://corpuslaw.us/codes/maryland/courts-and-judicial-proceedings/title-5/section-5-1004)
- **Semantic URL**: [https://corpuslaw.us/codes/maryland/courts-and-judicial-proceedings/title-5/section-5-1004](https://corpuslaw.us/codes/maryland/courts-and-judicial-proceedings/title-5/section-5-1004)

## Hierarchy

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

## Text

(a) Prior to service of process of the prisoner’s civil action, the court shall review the prisoner’s initial complaint and identify any cognizable claims.

(b) After reviewing the prisoner’s complaint, the court may dismiss the civil action, or any portion thereof, with or without prejudice, if it finds that the civil action:

(1) Is frivolous, malicious, or fails to state a claim for which relief can be granted;

(2) Seeks monetary damages from a defendant who is immune from such relief; or

(3) Is barred under § 5-1003(a) of this subtitle.

(c) An order of dismissal under subsection (b)(1) or (2) of this section may be issued without first requiring proof of exhaustion.
