Already have an account? Sign in instead.
You stay signed in for 30 days on this browser.
Continue with Google Continue with MicrosoftNo account yet? Create a free one.
We sent a six-digit code.
It expires in ten minutes, works once, and only in this browser. Five wrong tries void it. Send another code.
Your account is live and the Cloudflare checks are off for this browser.
Courts have cited this section in 400 opinions since 1975, 79 of them in the last five years. The most litigated part is subsection (f)(2) (6 cases).
(a)As used in this section:
(1)“Action” means any civil action or special proceeding.
(2)“Complaint” means a complaint and a cross-complaint.
(3)“Court” means the court in which the action is pending.
(4)“Defendant” includes a cross-defendant.
(5)“Plaintiff” includes a cross-complainant.
(6)“Trial.” A trial shall be deemed to actually commence at the beginning of the opening statement or argument of any party or his or her counsel, or if there is no opening statement, then at the time of the administering of the oath or affirmation to the first witness, or the introduction of any evidence.
(b)An action may be dismissed in any of the following instances:
(1)With or without prejudice, upon written request of the plaintiff to the clerk, filed with papers in the case, or by oral or written request to the court at any time before the actual commencement of trial, upon payment of the costs, if any.
(2)With or without prejudice, by any party upon the written consent of all other parties.
(3)By the court, without prejudice, when no party appears for trial following 30 days’ notice of time and place of trial.
(4)By the court, without prejudice, when dismissal is made pursuant to the applicable provisions of Chapter 1.5 (commencing with Section 583.110).
(5)By the court, without prejudice, when either party fails to appear on the trial and the other party appears and asks for dismissal.
(c)A plaintiff may dismiss his or her complaint, or any cause of action asserted in it, in its entirety, or as to any defendant or defendants, with or without prejudice prior to the actual commencement of trial.
(d)Except as otherwise provided in subdivision (e), the court shall dismiss the complaint, or any cause of action asserted in it, in its entirety or as to any defendant, with prejudice, when upon the trial and before the final submission of the case, the plaintiff abandons it.
(e)After the actual commencement of trial, the court shall dismiss the complaint, or any causes of action asserted in it, in its entirety or as to any defendants, with prejudice, if the plaintiff requests a dismissal, unless all affected parties to the trial consent to dismissal without prejudice or by order of the court dismissing the same without prejudice on a showing of good cause.
(f)The court may dismiss the complaint as to that defendant when:
(1)Except where Section 597 applies, after a demurrer to the complaint is sustained without leave to amend and either party moves for dismissal.
(2)Except where Section 597 applies, after a demurrer to the complaint is sustained with leave to amend, the plaintiff fails to amend it within the time allowed by the court and either party moves for dismissal.
(3)After a motion to strike the whole of a complaint is granted without leave to amend and either party moves for dismissal.
(4)After a motion to strike the whole of a complaint or portion thereof is granted with leave to amend the plaintiff fails to amend it within the time allowed by the court and either party moves for dismissal.
(g)The court may dismiss without prejudice the complaint in whole, or as to that defendant, when dismissal is made under the applicable provisions of Chapter 1.5 (commencing with Section 583.110).
(h)The court may dismiss without prejudice the complaint in whole, or as to that defendant, when dismissal is made pursuant to Section 418.10.
(i)No dismissal of an action may be made or entered, or both, under paragraph (1) of subdivision (b) where affirmative relief has been sought by the cross-complaint of a defendant or if there is a motion pending for an order transferring the action to another court under the provisions of Section 396b.
(j)No dismissal may be made or entered, or both, under paragraph (1) or (2) of subdivision (b) except upon the written consent of the attorney for the party or parties applying therefor, or if consent of the attorney is not obtained, upon order of dismissal by the court after notice to the attorney.
(k)No action may be dismissed which has been determined to be a class action under the provisions of this code unless and until notice that the court deems adequate has been given and the court orders the dismissal.
(l)The court may dismiss, without prejudice, the complaint in whole, or as to that defendant when either party fails to appear at the trial and the other party appears and asks for the dismissal.
(m)The provisions of this section shall not be deemed to be an exclusive enumeration of the court’s power to dismiss an action or dismiss a complaint as to a defendant.
Show all 400 citing cases (list view) →
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.
One bar per year. Tallest: 23 cases in 2014. 2026 is a partial year. 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.
Edition shown: leginfo export of Sept. 26, 2026 (applied Oct. 1, 2026). Syfert holds no earlier or later version of this section.