> 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 § 1497. — Section 1497.

- **Citation**: Cal. Penal Code - PEN § 1497.
- **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-1497](https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-1/section-1497)
- **Semantic URL**: [https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-1/section-1497](https://corpuslaw.us/codes/california/penal-code/part-2/title-12/chapter-1/section-1497)

## 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

When it appears to any court, or judge, authorized by law to issue the writ of habeas corpus, that any one is illegally held in custody, confinement, or restraint, and that there is reason to believe that the person will be carried out of the jurisdiction of the court or judge before whom the application is made, or will suffer some irreparable injury before compliance with the writ of habeas corpus can be enforced, the court or judge may cause a warrant to be issued, reciting the facts, and directed to any peace officer, commanding the peace officer to take the person held in custody, confinement, or restraint, and immediately bring him or her before the
				  court or judge, to be dealt with according to law.
