§ 527.Preliminary Injunctions and Temporary Restraining Orders
Title 7. Other Provisional Remedies In Civil Actions · Chapter 3. Injunction · Last amended 2001 · Last verified July 28, 2026
Full Text of § 527
Plain-English Summary
Section 527 is the backbone procedure for preliminary injunctions and temporary restraining orders in California civil litigation. A preliminary injunction — the order that holds the status quo while a case proceeds toward trial — can be sought at any time before judgment, based on a verified complaint or on affidavits, but subdivision (a) requires notice to the opposing party before one issues. Nobody gets a preliminary injunction in secret.
A TRO is different: it is meant to bridge the gap until a preliminary injunction hearing can happen, and subdivision (c) allows one without notice, but only on a tight two-part showing. First, the applicant must show by affidavit or verified complaint that waiting for a noticed hearing would cause great or irreparable injury. Second, the applicant or the applicant's attorney must certify, under oath, either that the opposing side was told when and where the application would be made, or that a good-faith effort to reach them failed (describing what was tried), or why notice should be excused entirely.
Once a TRO issues without notice, subdivision (d) puts the case on a fast, structured track: the order must set a hearing on a preliminary injunction within 15 days (22 for good cause), the party who got the TRO has to serve the complaint, order to show cause, and supporting papers within tight deadlines, and the opposing party gets one continuance of at least 15 days to prepare a response — during which the TRO stays in effect. If the party who obtained the TRO isn't ready to proceed at the hearing, or didn't complete service, the court must dissolve the TRO. Subdivision (e) gives the eventual hearing, and the underlying case once it is at issue, priority on the court's calendar over most other matters.
Section 527 applies broadly — including in class actions under subdivision (b), whether or not the class has been certified — but it does not govern injunctions issued under the Family Code. Specific statutes elsewhere in this chapter, like § 527.6 for civil harassment and § 527.8 for workplace violence, build directly on this section's TRO framework while adding their own subject-specific procedures and timelines.
Frequently Asked Questions
Does a court have to give notice before issuing a preliminary injunction in California?
Yes. Section 527(a) requires notice to the opposing party before a preliminary injunction may be granted; it cannot be issued purely ex parte.
What must someone show to get a temporary restraining order without notifying the other side first?
Under § 527(c), the applicant must show by affidavit or verified complaint that great or irreparable injury would result from waiting for a noticed hearing, and must certify under oath either that the opposing party was notified of the application, that a good-faith attempt to notify them failed, or why notice should be excused.
How long does a TRO last before there has to be a hearing on a preliminary injunction?
The hearing must be set within 15 days of the TRO issuing, or up to 22 days if the court finds good cause, under § 527(d)(1).
What happens if the party who got the TRO isn't ready to proceed at the hearing?
Section 527(d)(3) requires the court to dissolve the temporary restraining order if that party isn't ready to proceed, or failed to properly serve the opposing side.
Does § 527 apply to restraining orders in family law cases?
No. Subdivision (g) states that this section does not apply to orders issued under the Family Code.
Amendment History
Amended by Stats 2000 ch 688 (AB 1669), s 4, eff. 1/1/2001.