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

# 20 Pa.C.S. § 5838 — Effect of divorce.

- **Citation**: 20 Pa.C.S. § 5838
- **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=20](https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=20)
- **Canonical URL**: [https://corpuslaw.us/codes/pennsylvania/title-20/chapter-58/section-5838](https://corpuslaw.us/codes/pennsylvania/title-20/chapter-58/section-5838)
- **Semantic URL**: [https://corpuslaw.us/codes/pennsylvania/title-20/chapter-58/section-5838](https://corpuslaw.us/codes/pennsylvania/title-20/chapter-58/section-5838)

## Hierarchy

Title 20 > Chapter 58

## Text

If the spouse of a principal is designated as the principal's mental health care agent and thereafter either spouse files an action in divorce, the designation of the spouse as mental health care agent shall be revoked as of the time the action is filed unless it clearly appears from the mental health power of attorney that the designation was intended to continue to be effective notwithstanding the filing of an action in divorce by either spouse.
