Pen. Code, § 171c · Chapter 7. Other Offenses Against Public Justice
Pen. Code, § 171c
Text — As published in the Legislative Counsel's database, tables dated October 18, 2026 (pubinfo_2025.zip)
(a) (1) Any person who brings a loaded firearm into, or possesses a loaded firearm within, the State Capitol, the state office building at 1021 O Street in the City of Sacramento, any legislative office, any office of the Governor or other constitutional officer, or any hearing room in which any committee of the Senate or Assembly is conducting a hearing, or upon the grounds of the State Capitol, which is bounded by 10th, L, 15th, and N Streets in the City of Sacramento, shall be punished by imprisonment in a county jail for a period of not more than one year, a fine of not more than one thousand dollars ($1,000), or both such imprisonment and fine, or by imprisonment pursuant to subdivision (h) of Section 1170.
(2) Any person who brings or possesses, within the State Capitol, any legislative office, any hearing room in which any committee of the Senate or Assembly is conducting a hearing, the Legislative Office Building at 1020 N Street in the City of Sacramento, the state office building at 1021 O Street in the City of Sacramento, or upon the grounds of the State Capitol, which is bounded by 10th, L, 15th, and N Streets in the City of Sacramento, any of the following, is guilty of a misdemeanor punishable by imprisonment in a county jail for a period not to exceed one year, or by a fine not exceeding one thousand dollars ($1,000), or by both that fine and imprisonment, if the area is posted with a statement providing reasonable notice that prosecution may result from possession of any of these items:
(A) Any firearm.
(B) Any deadly weapon described in Section 21510 or in any provision listed in Section 16590.
(C) Any knife with a blade length in excess of four inches, the blade of which is fixed or is capable of being fixed in an unguarded position by the use of one or two hands.
(D) Any unauthorized tear gas weapon.
(E) Any stun gun, as defined in Section 244.5.
(F) Any instrument that expels a metallic projectile, such as a BB or pellet, through the force of air pressure, CO2 pressure, or spring action, or any spot marker gun or paint gun.
(G) Any ammunition as defined in Sections 16150 and 16650.
(H) Any explosive as defined in Section 12000 of the Health and Safety Code.
(b) Subdivision (a) shall not apply to, or affect, any of the following:
(1) A duly appointed peace officer as defined in Chapter 4.5 (commencing with Section 830) of Title 3 of Part 2, a retired peace officer with authorization to carry concealed weapons as described in Article 2 (commencing with Section 25450) of Chapter 2 of Division 5 of Title 4 of Part 6, a full-time paid peace officer of another state or the federal government who is carrying out official duties while in California, or any person summoned by any of these officers to assist in making arrests or preserving the peace while that person is actually engaged in assisting the officer.
(2) A person holding a valid license to carry the firearm pursuant to Chapter 4 (commencing with Section 26150) of Division 5 of Title 4 of Part 6, and who has permission granted by the Chief Sergeants at Arms of the State Assembly and the State Senate to possess a concealed weapon upon the premises described in subdivision (a).
(3) A person who has permission granted by the Chief Sergeants at Arms of the State Assembly and the State Senate to possess a weapon upon the premises described in subdivision (a).
(c) (1) Nothing in this section shall preclude prosecution under Chapter 2 (commencing with Section 29800) or Chapter 3 (commencing with Section 29900) of Division 9 of Title 4 of Part 6 of this code, Section 8100 or 8103 of the Welfare and Institutions Code, or any other law with a penalty greater than is set forth in this section.
(2) The provisions of this section are cumulative, and shall not be construed as restricting the application of any other law. However, an act or omission punishable in different ways by different provisions of law shall not be punished under more than one provision.
Notes and commentary — not statutory text
History
Amended by Stats. 2021, Ch. 253, Sec. 1. (AB 173) Effective September 23, 2021.
Formatting
sub: 2
Source of truth
- Edition
- As published in the Legislative Counsel's database, tables dated October 18, 2026 (pubinfo_2025.zip)
- Official file
- https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=PEN§ionNum=171c.
- Text hash
- sha256 3f13642aec5a436d631c8a5dd3e57d218eb08c59982cf321d08ebbb11b8823f5
- Composed by
- compose_ca.py 2026-10-22: the Legislative Counsel's CAML content files read by a tokenizer (caml_readers.reader_a); an independent xml.etree reading (caml_readers.reader_b) agrees on every section
This section cites
Provisions in this library that the text above cites, as it prints each citation. A range cited as “ss. 61.13-61.16” links its first and last provisions.
Health and Safety Code
Penal Code
- Pen. Code, § 244.5Printed as Section 244.5
- Pen. Code, pt. 2, tit. 3, ch. 4.5Peace OfficersPrinted as Chapter 4.5 (commencing with Section 830) of Title 3 of Part 2
- Pen. Code, § 1170Printed as Section 1170
- Pen. Code, § 16150Printed as Sections 16150 and 16650
- Pen. Code, § 16590Printed as Section 16590
- Pen. Code, § 16650Printed as Sections 16150 and 16650
- Pen. Code, § 21510Printed as Section 21510
- Pen. Code, pt. 6, tit. 4, div. 5, ch. 2, art. 2Peace Officer ExemptionPrinted as Article 2 (commencing with Section 25450) of Chapter 2 of Division 5 of Title 4 of Part 6
- Pen. Code, pt. 6, tit. 4, div. 5, ch. 4License to Carry A Pistol, Revolver, or Other Firearm Capable of Being Concealed Upon the PersonPrinted as Chapter 4 (commencing with Section 26150) of Division 5 of Title 4 of Part 6
- Pen. Code, pt. 6, tit. 4, div. 9, ch. 2Person Convicted of Specified Offense, Addicted to Narcotic, or Subject to Court OrderPrinted as Chapter 2 (commencing with Section 29800) … of this code
- Pen. Code, pt. 6, tit. 4, div. 9, ch. 3Person Convicted of Violent OffensePrinted as Chapter 3 (commencing with Section 29900) of Division 9 of Title 4 of Part 6 of this code
Cited by 6 provisions
Provisions in this library whose text cites Pen. Code, § 171c. Each shows the citation as that text prints it.
Penal Code
- Pen. Code, § 171bPrinted as Section 171c, 171d, 626.9, 626.95, or 626.10 of this code
- Pen. Code, § 171ePrinted as Section 171c or 171d | Sections 171c and 171d
- Pen. Code, § 26230Printed as Section 171c
- Pen. Code, § 26385Printed as Section 171c
- Pen. Code, § 26405Printed as Section 171c
- Pen. Code, § 29805Printed as Section 171c
Procedural information only. Not legal advice and not a substitute for the advice of an attorney. Confirm the current text with the official publisher before relying on it.