Cal. PEN § 145.5
This is the official text of Cal. PEN § 145.5, part of California’s Penal Code — defines crimes and sets criminal procedure in California.
Not legal advice. This page reproduces the official text of a government statute for reference only. Laws change, and how a statute applies depends on your specific facts. For advice about your situation, consult a licensed attorney in your state.
Official statutory text
(a) (1) Subject to paragraph (2), notwithstanding any law to the contrary, no agency of the State of California, no political subdivision of this state, no employee of an agency, or a political subdivision, of this state acting in his or her official capacity, and no member of the California National Guard on official state duty shall knowingly aid an agency of the armed forces of the United States in any investigation, prosecution, or detention of a person within California pursuant to (A) Sections 1021 and 1022 of the National Defense Authorization Act for Fiscal Year 2012 (NDAA), (B) the federal law known as the Authorization for Use of Military Force (Public Law 107-40), enacted in 2001, or (C) any other federal law, if the state agency, political subdivision, employee, or member of the California National Guard would violate the United States Constitution, the California Constitution, or any law of this state by providing that aid.
(2) Paragraph (1) does not apply to participation by state or local law enforcement or the California National Guard in a joint task force, partnership, or other similar cooperative agreement with federal law enforcement if that joint task force, partnership, or similar cooperative agreement is not for the purpose of investigating, prosecuting, or detaining any person pursuant to (A) Sections 1021 and 1022 of the NDAA, (B) the federal law known as the Authorization for Use of Military Force (Public Law 107-40), enacted in 2001, or (C) any other federal law, if the state agency, political subdivision, employee, or member of the California National Guard would violate the United States Constitution, the California Constitution, or any law of this state by providing that aid.
(b) It is the policy of this state to refuse to provide material support for or to participate in any way with the implementation within this state of any federal law that purports to authorize indefinite detention of a person within California. Notwithstanding any other law, no local law enforcement agency or local or municipal government, or the employee of that agency or government acting in his or her official capacity, shall knowingly use state funds or funds allocated by the state to local entities on or after January 1, 2013, in whole or in part, to engage in any activity that aids an agency of the armed forces of the United States in the detention of any person within California for purposes of implementing Sections 1021 and 1022 of the NDAA or the federal law known as the Authorization for Use of Military Force (Public Law 107-40), enacted in 2001, if that activity would violate the United States Constitution, the California Constitution, or any law of this state.
(2) Paragraph (1) does not apply to participation by state or local law enforcement or the California National Guard in a joint task force, partnership, or other similar cooperative agreement with federal law enforcement if that joint task force, partnership, or similar cooperative agreement is not for the purpose of investigating, prosecuting, or detaining any person pursuant to (A) Sections 1021 and 1022 of the NDAA, (B) the federal law known as the Authorization for Use of Military Force (Public Law 107-40), enacted in 2001, or (C) any other federal law, if the state agency, political subdivision, employee, or member of the California National Guard would violate the United States Constitution, the California Constitution, or any law of this state by providing that aid.
(b) It is the policy of this state to refuse to provide material support for or to participate in any way with the implementation within this state of any federal law that purports to authorize indefinite detention of a person within California. Notwithstanding any other law, no local law enforcement agency or local or municipal government, or the employee of that agency or government acting in his or her official capacity, shall knowingly use state funds or funds allocated by the state to local entities on or after January 1, 2013, in whole or in part, to engage in any activity that aids an agency of the armed forces of the United States in the detention of any person within California for purposes of implementing Sections 1021 and 1022 of the NDAA or the federal law known as the Authorization for Use of Military Force (Public Law 107-40), enacted in 2001, if that activity would violate the United States Constitution, the California Constitution, or any law of this state.
Status: in_force · Read it on the official government site
Dealing with a criminal defense matter in California?
See all California Criminal Defense lawyers
About this page: Statute text is reproduced from official government publishers via the
Open US Law dataset
(Vaquill AI, snapshot v2026.08, CC BY 4.0). Primary legislative text like this is public domain under the government-edicts doctrine
(Georgia v. Public.Resource.Org, 2020). We link every section back to its official source so you can verify it independently.