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

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

## Hierarchy

Title PEN — Penal Code - PEN > Part 1. — PART 1. OF CRIMES AND PUNISHMENTS [25. - 680.4.] > Title 13. — TITLE 13. OF CRIMES AGAINST PROPERTY [450. - 593g.] > Chapter 6. — CHAPTER 6. Embezzlement [503. - 515.]

## Text

Upon any indictment for embezzlement, it is a sufficient defense that the property was appropriated openly and avowedly, and under a claim of title preferred in good faith, even though such claim is untenable. But this provision does not excuse the unlawful retention of the property of another to offset or pay demands held against him.
