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

# Cal. Penal Code - PEN § 1501. — Section 1501.

- **Citation**: Cal. Penal Code - PEN § 1501.
- **Node Type**: section
- **Jurisdiction**: California (state)
- **Code Body**: Penal Code - PEN (PEN)
- **Official Source**: [https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip](https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip)
- **Canonical URL**: [https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-1/section-1501](https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-1/section-1501)
- **Semantic URL**: [https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-1/section-1501](https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-1/section-1501)

## Hierarchy

Title PEN — Penal Code - PEN > Part 2. — PART 2. OF CRIMINAL PROCEDURE [681. - 1620.] > Title 12. — TITLE 12. OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE [1473. - 1564.] > Chapter 1. — CHAPTER 1. Of the Writ of Habeas Corpus [1473. - 1509.1.]

## Text

If such party is held under illegal restraint or custody, he must be discharged; and if not, he must be restored to the care or custody of the person entitled thereto.
