> 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. Government Code - GOV § 26540. — Section 26540.

- **Citation**: Cal. Government Code - GOV § 26540.
- **Node Type**: section
- **Jurisdiction**: California (state)
- **Code Body**: Government Code - GOV (GOV)
- **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/government-code/title-3/division-2/part-3/chapter-1/article-3/section-26540](https://corpuslaw.us/codes/california/government-code/title-3/division-2/part-3/chapter-1/article-3/section-26540)
- **Semantic URL**: [https://corpuslaw.us/codes/california/government-code/title-3/division-2/part-3/chapter-1/article-3/section-26540](https://corpuslaw.us/codes/california/government-code/title-3/division-2/part-3/chapter-1/article-3/section-26540)

## Hierarchy

Title GOV — Government Code - GOV > Title 3. — TITLE 3. GOVERNMENT OF COUNTIES [23000. - 33205.] > Division 2. — DIVISION 2. OFFICERS [24000. - 28085.] > Part 3. — PART 3. OTHER OFFICERS [26500. - 27773.] > Chapter 1. — CHAPTER 1. District Attorney [26500. - 26543.] > Article 3. — ARTICLE 3. Restrictions [26540. - 26543.]

## Text

A district attorney shall not during his incumbency defend or assist in the defense of, or act as counsel for, any person accused of any crime in any county.
