Skip to main content

Code Civ. Proc., § 1038 · Chapter 6. Of Costs

Code Civ. Proc., § 1038

Verbatim from the official edition

Text — As published in the Legislative Counsel's database, tables dated October 18, 2026 (pubinfo_2025.zip)

(a) In any civil proceeding under the Government Claims Act (Division 3.6 (commencing with Section 810) of Title 1 of the Government Code) or for express or implied indemnity or for contribution in any civil action, the court, upon motion of the defendant or cross-defendant, shall, at the time of the granting of any summary judgment, motion for directed verdict, motion for judgment under Section 631.8, or any nonsuit dismissing the moving party other than the plaintiff, petitioner, cross-complainant, or intervenor, or at a later time set forth by rule of the Judicial Council adopted under Section 1034, determine whether or not the plaintiff, petitioner, cross-complainant, or intervenor brought the proceeding with reasonable cause and in the good faith belief that there was a justifiable controversy under the facts and law which warranted the filing of the complaint, petition, cross-complaint, or complaint or answer in intervention. If the court should determine that the proceeding was not brought in good faith and with reasonable cause, an additional issue shall be decided as to the defense costs reasonably and necessarily incurred by the party or parties opposing the proceeding, and the court shall render judgment in favor of that party in the amount of all reasonable and necessary defense costs, in addition to those costs normally awarded to the prevailing party. An award of defense costs under this section shall not be made except on notice contained in a party’s papers and an opportunity to be heard.

(b) “Defense costs,” as used in this section, shall include reasonable attorney’s fees, expert witness fees, the expense of services of experts, advisers, and consultants in defense of the proceeding, and where reasonably and necessarily incurred in defending the proceeding.

(c) This section shall be applicable only on motion made before the discharge of the jury or entry of judgment, and any party requesting the relief pursuant to this section waives any right to seek damages for malicious prosecution. Failure to make the motion shall not be deemed a waiver of the right to pursue a malicious prosecution action.

(d) This section shall only apply if the defendant or cross-defendant has made a motion for summary judgment, judgment under Section 631.8, directed verdict, or nonsuit and the motion is granted.

Notes and commentary — not statutory text

History

Amended by Stats. 2017, Ch. 131, Sec. 3. (AB 1693) Effective January 1, 2018.

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=CCP&sectionNum=1038.
Text hash
sha256 2f714f52e96f2085b264f20f7dad9096e3672334c1800fe35538fee7d0a7f19a
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.

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.