Cal. CCP § 1021.11
This is the official text of Cal. CCP § 1021.11, part of California’s Code of Civil Procedure — sets the procedural rules for civil lawsuits in California courts, including filing deadlines, discovery, and judgments.
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) Notwithstanding any other law, any person, including an entity, attorney, or law firm, who seeks declaratory or injunctive relief to prevent this state, a political subdivision, a governmental entity or public official in this state, or a person in this state from enforcing any statute, ordinance, rule, regulation, or any other type of law that regulates or restricts firearms, or that represents any litigant seeking that relief, is jointly and severally liable to pay the attorney’s fees and costs of the prevailing party.
(b) For purposes of this section, a party is considered a prevailing party if a court does either of the following:
(1) Dismisses any claim or cause of action brought by the party seeking the declaratory or injunctive relief described by subdivision (a), regardless of the reason for the dismissal.
(2) Enters judgment in favor of the party opposing the declaratory or injunctive relief described by subdivision (a), on any claim or cause of action.
(c) Regardless of whether a prevailing party sought to recover attorney’s fees or costs in the underlying action, a prevailing party under this section may bring a civil action to recover attorney’s fees and costs against a person, including an entity, attorney, or law firm, that sought declaratory or injunctive relief described by subdivision (a) not later than the third anniversary of the date on which, as applicable:
(1) The dismissal or judgment described by subdivision (b) becomes final upon the conclusion of appellate review.
(2) The time for seeking appellate review expires.
(d) None of the following are a defense to an action brought under subdivision (c):
(1) A prevailing party under this section failed to seek recovery of attorney’s fees or costs in the underlying action.
(2) The court in the underlying action declined to recognize or enforce the requirements of this section.
(3) The court in the underlying action held that any provision of this section is invalid, unconstitutional, or preempted by federal law, notwithstanding the doctrines of issue or claim preclusion.
(e) Any person, including an entity, attorney, or law firm, who seeks declaratory or injunctive relief as described in subdivision (a), shall not be deemed a prevailing party under this section or any other provision of this chapter.
(b) For purposes of this section, a party is considered a prevailing party if a court does either of the following:
(1) Dismisses any claim or cause of action brought by the party seeking the declaratory or injunctive relief described by subdivision (a), regardless of the reason for the dismissal.
(2) Enters judgment in favor of the party opposing the declaratory or injunctive relief described by subdivision (a), on any claim or cause of action.
(c) Regardless of whether a prevailing party sought to recover attorney’s fees or costs in the underlying action, a prevailing party under this section may bring a civil action to recover attorney’s fees and costs against a person, including an entity, attorney, or law firm, that sought declaratory or injunctive relief described by subdivision (a) not later than the third anniversary of the date on which, as applicable:
(1) The dismissal or judgment described by subdivision (b) becomes final upon the conclusion of appellate review.
(2) The time for seeking appellate review expires.
(d) None of the following are a defense to an action brought under subdivision (c):
(1) A prevailing party under this section failed to seek recovery of attorney’s fees or costs in the underlying action.
(2) The court in the underlying action declined to recognize or enforce the requirements of this section.
(3) The court in the underlying action held that any provision of this section is invalid, unconstitutional, or preempted by federal law, notwithstanding the doctrines of issue or claim preclusion.
(e) Any person, including an entity, attorney, or law firm, who seeks declaratory or injunctive relief as described in subdivision (a), shall not be deemed a prevailing party under this section or any other provision of this chapter.
Status: in_force · Read it on the official government site
Need a lawyer in California?
Find a California lawyer
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.