California Codes homeSearch California
Cal. CodesCode of Civil ProcedurePart 2. Of Civil ActionsTitle 14. Of Miscellaneous ProvisionsChapter 6. Of Costs

Cal. Code of Civil Procedure § 1021.7 (2026)

Edition and currency
leginfo export of Sept. 26, 2026 (applied Oct. 1, 2026). The text is the edition Syfert holds; for a past event, check the version in force on that date.
Other sources
CURRENTleginfo export of Sept. 26, 2026 (applied Oct. 1, 2026) cited 1982–2019 12citing cases
At a glance

Courts have cited this section in 12 opinions since 1982.

In any action for damages arising out of the performance of a peace officer’s duties, brought against a peace officer, as defined in Chapter 4.5 (commencing with Section 830) of Title 3 of Part 2 of the Penal Code, or against a public entity employing a peace officer or in an action for libel or slander brought pursuant to Section 45 or 46 of the Civil Code, the court may, in its discretion, award reasonable attorney’s fees to the defendant or defendants as part of the costs, upon a finding by the court that the action was not filed or maintained in good faith and with reasonable cause.

The 12 cases that cite Cal. Code of Civil Procedure § 1021.7 most heavily, weighted by court and treatment. RelevanceNewestTreatment
1
GREENSalazar v. Upland Police Dep't, 116 Cal. App. 4th 934 (Ct. App. 2004).
cites § 1021.7 12×cited by 11 cases
Where it cites § 1021.7
“The trial court awarded fees and costs under Code of Civil Procedure section 1021.7 on the ground plaintiff’s action was not maintained with reasonable cause.”
2
GREENPina v. Cnty. of L. A., 38 Cal. App. 5th 531 (Ct. App. 2019).
cites § 1021.7 4×cited by 11 cases
Where it cites § 1021.7
“icially erred in admitting other evidence concerning the cause of appellant's injuries and the amount of medical expenses he incurred; (3) the County's counsel prejudicially misrepresented the law and the record during closing argument; (4) the jury's damages award was…”
Later courts cite it for
“to assist the parties and the court, we address other alleged errors regarding issues likely to arise on retrial.” · 2 citing courts
3
GREENKahn v. Bower, 232 Cal. App. 3d 1599 (Ct. App. 1991).
cites § 1021.7 3×cited by 79 cases
Where it cites § 1021.7
“The trial court’s denial of fees will be upheld if it is sustainable on any ground, including an implied finding that plaintiff acted in good faith in filing and maintaining this action.”
The case’s holding
A child welfare worker is a public official because the duties of the position tend naturally to have a large or dramatic impact on members of the public.
Later courts cite it for
“the general rule is that the words constituting an alleged libel must be specifically identified, if not pleaded verbatim, in the complaint.” · 10 citing courts
4
GREENMartin v. Szeto, 32 Cal. 4th 445 (2004).
cites § 1021.7 31×cited by 1 case
Where it cites § 1021.7
“We granted review to resolve a conflict in the lower courts over the proper interpretation of Code of Civil Procedure section 1021.7. [1] The section permits a court *689 to award attorneys' fees to a peace officer, or to a public entity employing a peace officer, that…”
The case’s holding
Statements about pending legislation are protected if they constitute a reiteration of legislative discussion and events rather than merely an expression of personal opinion.
Later courts cite it for
“statements about pending legislation are entitled to consideration to the extent they constitute 'a reiteration of legislative discussion and events leading to adoption of proposed amendments rather than merely an expression of personal opinion.” · 3 citing courts
5
GREENCurtis v. Cnty. of Los Angeles, 172 Cal. App. 3d 1243 (Ct. App. 1985).
cites § 1021.7 4×cited by 29 cases
Where it cites § 1021.7
“In support of his position, plaintiff argues that one year after section 1038 was enacted, the Legislature enacted Code of Civil Procedure section 1021.7 (Stats.”
The case’s holding
Code of Civil Procedure section 1038's requirement that an action be brought in good faith and with reasonable cause applies to continued maintenance of the action, not merely its initial filing.
Later courts cite it for
“inasmuch as the legislature provided in subdivision (c) of section 1038 that a request for relief pursuant to the section operates as a waiver of a malicious prosecution action, we presume the legislature intended that section 1290 1038 would provide a means of redress for acts similar to those for which damages are sought in a civil malicious prosecution action.” · 1 citing court
6
GREENCalifornia Cas. Mgmt. Co. v. Martocchio, 11 Cal. App. 4th 1527 (Ct. App. 1992).
cites § 1021.7 3×cited by 17 cases
Where it cites § 1021.7
“Chronicle sought an award of its attorney fees as sanctions under the provisions of Code of Civil Procedure section 128.5 2 and Code of Civil Procedure section 1021.”
The case’s holding
Insurance Code section 533 bars insurance coverage for court-imposed sanctions for bad-faith frivolous litigation, because such conduct is inherently intentional, wrongful, and harmful.
7
YELLOWCity of Long Beach v. Bozek, 31 Cal. 3d 527 (1982).
cites § 1021.7 8×cited by 60 cases
Vacated: 7 citing opinions add another limit ("vacated (caution)").
Where it cites § 1021.7
“[8] In a separate enactment, the Legislature added Code of Civil Procedure section 1021.7, which provides: "In any action for damages arising out of the performance of a peace officer's duties, brought against a peace officer, .”
The case’s holding
Governmental entities may not maintain actions for malicious prosecution against individuals who sue them, as the right to petition is absolutely privileged.
8
YELLOWKnight v. City of Capitola, 4 Cal. App. 4th 918 (Ct. App. 1992).
cites § 1021.7 1×cited by 55 cases
Disapproved by Reid v. Google, Inc. on other grounds: 8 citing opinions limit it to other grounds.
Where it cites § 1021.7
“2d 1072 ] [Code Civ. Proc., § 1021.7]; Sheldon Appel Co.”
The case’s holding
A municipality owes no duty to warn of injuries sustained during bodysurfing when a lifeguard is present.
Later courts cite it for
“on its face the last clause of . . . section 831.2 provides public entities with immunity, without express reference to the improved or unimproved status of the property, for injuries caused by 'any natural condition of any lake, stream, bay, river or beach.” · 3 citing courts
9
NEUTRALMartin v. Szeto, 94 Cal. App. 4th 687 (Ct. App. 2002).
cites § 1021.7 21×cited by 0 cases
Where it cites § 1021.7
“In this slander action, appellants Richard Szeto and Anthony Lincoln appeal from an order denying their request for attorney fees pursuant to Code of Civil Procedure [1] section 1021.”
10
cites § 1021.7 1×cited by 2 cases
Where it cites § 1021.7
“) We see no reason not to interpret “reasonable cause” as used in section 4771 in the same way—as setting forth an objective, reasonable person standard.”
11
NO FLAGPina v. Cnty. of Los Angeles, No. B285630 (Cal. Ct. App. Aug. 7, 2019).
cites § 1021.7 4×cited by 0 cases
Where it cites § 1021.7
“rejudicially erred in admitting other evidence concerning the cause of appellant’s injuries and the amount of medical expenses he incurred; (3) the County’s counsel prejudicially misrepresented the law and the record during closing argument; (4) the jury’s damages award was…”
12
NO FLAGGenthner v. City of Fresno, No. F070039 (Cal. Ct. App. Jan. 5, 2016).
cites § 1021.7 1×cited by 0 casesunpublished
Where it cites § 1021.7
“Pursuant to Code of Civil Procedure section 1021.7, there was substantial evidence to support the court’s determination plaintiff’s action was not filed “in good faith and with reasonable cause.”

The flag is Syfertize’s treatment of the citing case itself, not of the statute. “Where it cites” is the passage in the opinion; the holding is a summary of the whole case and may concern another point. Annotations are extracted automatically from the opinions in the Syfert caselaw corpus.

Citing cases by year
198220002019

One bar per year. Tallest: 2 cases in 1992. These are opinions in the Syfert collection, which holds more of some courts’ recent opinions than their older ones, so a rise can reflect what the collection holds and not more litigation.

By court
Cal. Ct. App.10Cal.2
By subsection

Courts have not cited this section by subsection, so its cases are not split up here. The Leading cases tab lists the cases that cite it most heavily.

Enactment and amendments
Added by Stats. 1981, Ch. 980, Sec. 1.
Versions

Edition shown: leginfo export of Sept. 26, 2026 (applied Oct. 1, 2026). Syfert holds no earlier or later version of this section.

California Codes Home  |  Search California  |  Search cases for this section  |  syfert.com