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

# 51 Pa.C.S. § 5104 — Subject matter jurisdiction.

- **Citation**: 51 Pa.C.S. § 5104
- **Node Type**: section
- **Jurisdiction**: Pennsylvania (state)
- **Code Body**: Pennsylvania Consolidated Statutes (Aug. 2026 snapshot) (Pa.C.S.)
- **Official Source**: [https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=51](https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=51)
- **Canonical URL**: [https://corpuslaw.us/codes/pennsylvania/title-51/chapter-51/section-5104](https://corpuslaw.us/codes/pennsylvania/title-51/chapter-51/section-5104)
- **Semantic URL**: [https://corpuslaw.us/codes/pennsylvania/title-51/chapter-51/section-5104](https://corpuslaw.us/codes/pennsylvania/title-51/chapter-51/section-5104)

## Hierarchy

Title 51 > Chapter 51

## Text

(a) General rule.--Subject matter jurisdiction is established if a nexus exists between an offense and the State military forces.

(b) Military offenses.--Courts-martial have primary jurisdiction of military offenses as defined in this part.

(c) Nonmilitary offenses.--A civilian court has primary jurisdiction of a nonmilitary offense when an act or omission violates both this part and criminal law. In such a case, a court-martial may be initiated only after the civilian authority has declined to prosecute or has dismissed the charge, provided jeopardy has not attached.

(d) Inchoate offenses.--Jurisdiction over inchoate offenses, including the offenses of attempt, conspiracy and solicitation, is given to the entity which has jurisdiction of the underlying offense. Cross References. Section 5104 is referred to in sections 5107, 6045 of this title.
