Quick summary
In California, a restraining order (also called a protective order) is a court order that bars a specific person from harassing, abusing, stalking, threatening or contacting someone else. The person protected is the protected person, and the person who must obey the order is the restrained person.
- Types: the main types are domestic violence, elder or dependent adult abuse, civil harassment and workplace violence orders. California also has gun violence, school violence and retail crime restraining orders.
- How long: an order after a hearing can last up to 5 years (up to 3 years for workplace violence orders). Temporary orders usually last about 3 weeks until the hearing.
- Violations: violating a protective order is usually a misdemeanor under Penal Code 273.6, with up to 1 year in jail.
- Example: After a breakup, Jordan keeps texting Lee despite a domestic violence restraining order. Each knowing violation can be charged under PC 273.6.
Most restraining orders also bar the restrained person from owning, possessing or buying a firearm while the order is in effect. Violating that ban is a separate crime under Penal Code 29825 PC.
In this article, our California criminal defense attorneys answer these key questions:
- 1. What is a restraining order?
- 2. Are there different kinds?
- 3. How long does a court order last?
- 4. What happens if the restrained person violates the terms?
- 5. Can the restrained person possess a firearm?
- 6. How do I get a restraining order?
- 7. Can restraining orders be challenged?
- 8. What proof do I need for a restraining order?
- Additional resources
1. What is a restraining order?
A restraining order is a court order that protects you from a specific, named person. Depending on the type, it can protect against harassment, physical abuse, stalking or threats of violence.1
A restraining order can include:
- personal conduct orders, which stop the restrained person from doing certain things (such as contacting, harassing, threatening, destroying property of, or assaulting you),
- stay-away orders, which keep the restrained person a set distance from you, your children, your home, your work or another named place, and
- residence exclusion (“move-out”) orders, which require the restrained person to move out of a home you share. These are available in domestic violence cases.2
2. Are there different kinds?
California has four main types of restraining orders that individuals or employers commonly seek. They protect against:
- domestic violence,
- elder or dependent adult abuse,
- civil harassment, and
- workplace violence.
California also has gun violence restraining orders, school violence restraining orders and retail crime restraining orders, plus criminal protective orders that a judge issues in a criminal case.3
2.1. Domestic violence
You can ask for a domestic violence restraining order if you have a close relationship with the person you need protection from.4 That includes someone who is:
- your spouse or former spouse,
- someone you live or lived with,
- someone you are dating or used to date, or were engaged to,
- the other parent of your child, or
- a close family member, such as a parent, child, sibling, grandparent or in-law.
You don’t have to show a physical injury. Under California’s Domestic Violence Prevention Act, abuse includes threats, stalking, harassment and “disturbing the peace” of the other person, and it “is not limited to the actual infliction of physical injury or assault.”5
What a domestic violence order can require. Besides no-contact and stay-away orders, a California judge hearing a domestic violence restraining order request can also:
- set temporary child custody and visitation,6
- decide who uses and controls property, such as the home or a car, and who pays certain bills coming due,7
- bar either person from canceling or changing insurance held for the family,8
- after a hearing, order child support, or spousal support if the two of you are married,9
- after a hearing, order the restrained person to pay restitution, such as lost earnings or medical costs caused by the abuse, and10
- after a hearing, order the restrained person to complete a batterer’s program.11
A domestic violence restraining order can also affect immigration status. Under federal law, a noncitizen whom a court finds violated the part of a protection order that protects against credible threats of violence, repeated harassment or bodily injury can be deported.12
2.2. Elder or dependent adult abuse
You can ask for an elder or dependent adult abuse restraining order if:
- you are 65 or older, or you are 18 to 64 and have physical or mental limitations that restrict your ability to carry out normal activities or protect your rights, and
- you are being abused, neglected, financially abused, isolated or abandoned, or deprived of care you need.13
2.3. Civil harassment
You can ask for a civil harassment restraining order in California if:
- someone is harassing, stalking, abusing or threatening you, and
- you don’t have the kind of close relationship that would qualify for a domestic violence order (for example, a neighbor, roommate, coworker, a friend you never dated, or a more distant relative such as a cousin, aunt or uncle).
What counts as harassment. Under California’s civil harassment law, Code of Civil Procedure 527.6, harassment is any of these:
- Unlawful violence: an assault, a battery or stalking (lawful self-defense or defense of others doesn’t count).
- A credible threat of violence: a knowing and willful statement or course of conduct that would make a reasonable person fear for their safety or their immediate family’s safety, and that serves no legitimate purpose.
- A course of conduct: a series of acts aimed at you, such as following you or sending harassing calls, texts or emails, that seriously alarms, annoys or harasses you and serves no legitimate purpose. It must be conduct that would cause a reasonable person substantial emotional distress, and it must actually cause you that distress.
Constitutionally protected activity, such as lawful speech or peaceful protest, is not harassment under this law.
Example: For a month, Maria’s neighbor leaves notes on her car every morning calling her names and saying he is watching her. The notes serve no legitimate purpose, and Maria stops sleeping. That pattern can support a civil harassment restraining order.
How a case moves. If you ask for a temporary restraining order, a California judge must grant or deny it the same day you file (or the next court day if you file late in the day). A hearing must then be held within 21 days, or 25 days if the court finds good cause.
The proof needed. At the hearing, the judge issues an order only if there is “clear and convincing evidence” of harassment. That is a higher bar than in most civil cases, and if you’re the person accused, it is often where the request can be defeated.
How long it lasts. An order after the hearing can last up to 5 years. It can be renewed for up to 5 more years without proof of new harassment.
Guns and cost. While the order is in effect, the restrained person can’t own, possess, buy or receive a firearm or ammunition, and the court orders them to give up any guns they have. There is no filing fee when the request alleges violence, threats of violence, stalking or conduct that put you in reasonable fear of violence.14
2.4. Workplace violence
In California, an employer, or a union or other collective bargaining representative, can ask for a workplace violence restraining order to protect an employee who has suffered harassment, unlawful violence or a credible threat of violence that can reasonably be connected to the workplace.15 The order can also protect other employees at that workplace and, if appropriate, at the employer’s other workplaces.16
The person who files for the employer doesn’t have to be the employee’s direct supervisor. A human resources manager, for example, can file on the company’s behalf. And since January 1, 2026, the law spells out that “employee” includes volunteers and independent contractors who work at the employer’s worksite.17
An individual employee can’t file for this type of order. To protect yourself from a coworker, you would ask for:
- a civil harassment restraining order, or
- a domestic violence restraining order (if you have a close relationship with the person).
What the employer must prove. A temporary order requires reasonable proof of unlawful violence or a credible threat of violence and that great or irreparable harm would result. A temporary order based on harassment requires more: clear and convincing evidence of harassment, of great or irreparable harm, and that the conduct served no legitimate purpose. To get an order after the hearing, the employer must prove by clear and convincing evidence that the restrained person engaged in harassment, unlawful violence or a credible threat of violence.18
Example: A former coworker keeps showing up in a Sacramento company’s parking lot and sending one employee threatening texts. The company can ask the court for a workplace violence restraining order that orders him to stay away from her and her workplace.
What the order can’t stop. A California court can’t use a workplace violence order to stop speech or activity that is constitutionally protected or protected by labor law, such as lawful picketing or union organizing.19
Cost. There is no filing fee when the petition alleges violence, threats of violence or stalking against an employee.20
Related employer duties. Separately, since July 1, 2024, most California employers must have a written workplace violence prevention plan, keep a violent incident log and train employees on the plan.21
3. How long does a court order last?
After a hearing, a California judge can issue a restraining order that lasts up to 5 years for domestic violence, civil harassment, and elder or dependent adult abuse orders.22 Workplace violence orders last up to 3 years.23 Orders can be renewed before they expire. A domestic violence order can be renewed for 5 or more years, or permanently, without new abuse.24
A temporary restraining order (“TRO”), see Section 6, usually lasts until the hearing, which is generally held within 21 days (or 25 days if the court finds good cause).25 A TRO can be granted without the other person present (“ex parte”).
An emergency protective order (“EPO”) lasts until the end of the 5th court day or the 7th calendar day after it’s issued, whichever comes first.26 Police officers can ask a judge for an EPO, often by phone, when they respond to a domestic violence call and believe someone needs immediate protection.
Is a restraining order a public record?
Usually, yes. A restraining order case is a court case, and California court records are presumed to be open to the public unless a law makes them confidential or a judge seals them.27 So the order and the court file can usually be looked up through the court that issued it.
Domestic violence, civil harassment, workplace violence, elder abuse and criminal protective orders issued in California are also sent to the California Department of Justice. It keeps a statewide restraining and protective order database that court clerks and police can check, whether or not the order has been served yet.28
A civil restraining order isn’t a criminal conviction. But violating one is a crime (see Section 4), and a conviction for that goes on your criminal record.
4. What happens if the restrained person violates the terms?
An intentional and knowing violation of a protective order is a crime under California Penal Code 273.6 PC.29 To convict, a prosecutor must prove that:
- a court lawfully issued a protective order,
- the restrained person knew about it,
- the restrained person was able to follow it, and
- the restrained person willfully violated it.30
A first PC 273.6 violation is usually a misdemeanor, punishable by:
- up to 1 year in county jail, and/or
- a fine of up to $1,000.
If the violation causes physical injury, the fine can be up to $2,000, and jail is 30 days to 1 year.31
The offense becomes a wobbler (it can be charged as a misdemeanor or a felony) if it’s a subsequent conviction within 7 years of a prior protective-order conviction and involves an act of violence or a credible threat of violence.32 As a felony, it’s punishable by 16 months, 2 years or 3 years in county jail (not state prison)33 and a fine of up to $10,000.34
5. Can the restrained person possess a firearm?
Most California restraining orders prohibit the restrained person from owning, possessing, buying or receiving a firearm while the order is in effect. Knowingly violating that prohibition is a crime under Penal Code 29825 PC.35
6. How do I get a restraining order?
You file forms with the California superior court describing why you need protection. You can do this yourself (the courts’ self-help website has the forms and instructions), or a lawyer can prepare them for you.
There’s no filing fee for a domestic violence restraining order.36 There’s also no fee for a civil harassment petition that alleges violence, threats of violence or stalking.37 Otherwise, you may qualify for a fee waiver.
A judge reviews your request and decides whether to issue a TRO, which usually lasts until the hearing (generally within 21 days).38 The other person must be formally served with the papers and notice of the hearing before the hearing.
At the hearing, the judge decides whether to issue a longer-term order “after hearing.” If granted, it can last up to 5 years (3 years for workplace violence orders).
7. Can restraining orders be challenged?
Yes. The restrained person can hire a lawyer to fight the request at the hearing, which is typically about 3 weeks after the TRO is issued. The person can also file a written response.
At the hearing, the lawyer can argue that the order isn’t justified, present evidence and call witnesses. If the judge agrees, the TRO ends and no longer-term order is issued.
If the judge does issue an order, the restrained person may be able to appeal, or later ask the court to modify or end the order.
Criminal protective orders in domestic violence cases
A restraining order can also come from a criminal case. When someone is charged with a domestic violence crime in California, the criminal court can issue a protective order while the case is pending if it finds good cause to believe the alleged victim or a witness is at risk of harm or intimidation.39
If the person is convicted, the judge must consider issuing a protective order at sentencing that can last up to 10 years,40 or up to 15 years after a conviction for corporal injury on a spouse or partner (Penal Code 273.5).41
What if the criminal charge is dismissed?
A civil domestic violence restraining order is a separate case from any criminal charge. It stays in effect even if the criminal case is dismissed, until it expires or the judge who issued it changes or ends it.42 A criminal protective order is part of the criminal case, so if the charges are dismissed, ask the criminal court or your lawyer to confirm whether that order has ended.
To change or end an order early, the restrained person can file a written request with the court that issued it. A California judge can modify or end an order if the facts have materially changed, the law has changed, or doing so would serve “the ends of justice.”43
8. What proof do I need for a restraining order?
Judges often grant temporary or emergency orders based on your written statement alone. For a longer-term order, bring evidence to the hearing, such as:
- threatening or harassing voicemails, texts, emails or social media messages,
- witnesses who saw or heard the abuse or threats,
- photos of injuries or damaged property, and
- police reports.
Additional Resources
If you or someone you know is in immediate danger, call 911. Otherwise, you can find help, information and advocacy here (as of November 2026):
- Restraining Orders – California Courts Self-Help Guide
- California Domestic Violence Help, Programs and Statistics – DomesticShelters.org
- National Domestic Violence Hotline – call 800-799-7233 or text START to 88788
- Rape, Abuse & Incest National Network (RAINN)
If you’ve been served with a restraining order or charged with violating one, contact our California criminal defense attorneys for a free consultation.
Legal references:
- California Code of Civil Procedure 527.6 CCP (civil harassment); Family Code 6320 (domestic violence).
- Family Code 6321 (move-out orders); Family Code 6320 (see note 1 above).
- California Courts Self-Help Guide, Which type of restraining order you can ask for.
- California Family Code 6211 (definition of domestic violence and the relationships covered).
- California Family Code 6203: “Abuse is not limited to the actual infliction of physical injury or assault.” See also Family Code 6320 (orders against threatening, stalking, harassing and “disturbing the peace of the other party”).
- California Family Code 6323: “The court may issue an ex parte order determining the temporary custody and visitation of a minor child …”
- California Family Code 6324: “The court may issue an ex parte order determining the temporary use, possession, and control of real or personal property of the parties and the payment of any liens or encumbrances coming due during the period the order is in effect.”
- California Family Code 6325.5: “The court may issue an ex parte order restraining any party from cashing, borrowing against, canceling, transferring, disposing of, or changing the beneficiaries of any insurance or other coverage held for the benefit of the parties …”
- California Family Code 6341 (child support under subdivision (a); spousal support under subdivision (c), “after notice and a hearing”).
- California Family Code 6342: “… restitution be paid to the petitioner for loss of earnings and out-of-pocket expenses, including, but not limited to, expenses for medical care and temporary housing, incurred as a direct result of the abuse …”
- California Family Code 6343: “After notice and a hearing, the court may issue an order requiring the restrained party to participate in a batterer’s program …”
- 8 U.S.C. 1227(a)(2)(E)(ii): any noncitizen whom a court determines “has engaged in conduct that violates the portion of a protection order that involves protection against credible threats of violence, repeated harassment, or bodily injury … is deportable.”
- California Welfare and Institutions Code 15657.03; California Courts Self-Help Guide, Elder or Dependent Adult Abuse Restraining Orders.
- Code of Civil Procedure 527.6(b)(1)-(3), (b)(7) (definitions), (e) and (g) (timing), (i)(1) (clear and convincing evidence), (j)(1) (up to 5 years, renewable), (u) (firearms) and (y)(2)(A) (no filing fee) (see note 1 above); California Courts Self-Help Guide, Civil Harassment Restraining Orders.
- California Code of Civil Procedure 527.8(a) CCP: “Any employer or collective bargaining representative of an employee who has suffered harassment, unlawful violence, or a credible threat of violence from any individual, that can reasonably be construed to be carried out or to have been carried out at the workplace, may seek a temporary restraining order and an order after hearing on behalf of the employee …”
- California Code of Civil Procedure 527.8 CCP(a) (see note 15 above): the order may cover “the employee and, at the discretion of the court, any number of other employees at the workplace, and, if appropriate, other employees at other workplaces of the employer.”
- California Code of Civil Procedure 527.8 CCP(b)(3) (as amended by AB 394, effective January 1, 2026): “For purposes of this section only, ‘employee’ also includes a volunteer or independent contractor who performs services for the employer at the employer’s worksite.”
- California Code of Civil Procedure 527.8 CCP(f)(1) (temporary order: “[r]easonable proof that an employee has suffered unlawful violence or a credible threat of violence by the respondent, and that great or irreparable harm would result to an employee,” or clear and convincing evidence of harassment, great or irreparable harm and a course of conduct that “served no legitimate purpose”) and (k) (order after hearing on “clear and convincing evidence that the respondent engaged in harassment, engaged in unlawful violence, or made a credible threat of violence”).
- California Code of Civil Procedure 527.8 CCP(c): the court may not issue an order “prohibiting speech or other activities that are constitutionally protected, protected by the National Labor Relations Act” or other listed labor laws.
- California Code of Civil Procedure 527.8 CCP(x): “There is no filing fee for a petition that alleges that a person has inflicted or threatened violence against an employee … or stalked the employee.”
- California Labor Code 6401.9(c)(1)(A) (“An employer shall establish, implement, and maintain an effective workplace violence prevention plan”), (e)(1) (training) and (i) (operative July 1, 2024); the section also requires a violent incident log.
- Family Code 6345(a); Code of Civil Procedure 527.6(j)(1) (see note 1 above); Welfare and Institutions Code 15657.03 (see note 5 above).
- Code of Civil Procedure 527.8 (see note 7 above): an order after hearing “may have a duration of not more than three years.”
- Family Code 6345(a) (see note 8 above): orders “may be renewed, upon the request of a party, either for five or more years, or permanently …”
- Code of Civil Procedure 527.6(f) and (g) (see note 1 above).
- California Family Code 6256.
- California Rules of Court, rule 2.550(c): “Unless confidentiality is required by law, court records are presumed to be open.”
- California Family Code 6380(b), (e): when one of these orders is issued, “the Department of Justice shall be immediately notified of the contents of the order,” and the Department “shall maintain a California Restraining and Protective Order System and shall make available to court clerks and law enforcement personnel, through computer access, all information regarding the protective and restraining orders … whether or not served upon the respondent.”
- California Penal Code 273.6(a) PC.
- CALCRIM No. 2701, Violation of Court Order: Protective Order or Stay Away.
- Penal Code 273.6(b) PC (see note 13 above).
- Penal Code 273.6(d) PC (see note 13 above).
- Penal Code 273.6(d) PC (see note 13 above) (“imprisonment in a county jail not to exceed one year, or pursuant to subdivision (h) of Section 1170”); Penal Code 1170(h) PC.
- California Penal Code 672 PC.
- Penal Code 273.6(g)(1) PC (see note 13 above); Penal Code 29825 PC.
- California Family Code 6222.
- Code of Civil Procedure 527.6 (see note 1 above) (“There is no filing fee for a petition that alleges that a person has inflicted or threatened violence against the petitioner, stalked the petitioner, or acted or spoken in any other manner that has placed the petitioner in reasonable fear of violence …”).
- Code of Civil Procedure 527.6(f) (see note 1 above).
- California Penal Code 136.2(a)(1): “Upon a good cause belief that harm to, or intimidation or dissuasion of, a victim or witness has occurred or is reasonably likely to occur, a court with jurisdiction over a criminal matter may issue orders …”
- Penal Code 136.2(i)(1): “The order may be valid for up to 10 years, as determined by the court.”
- California Penal Code 273.5(j)(1): “Upon conviction under subdivision (a), the sentencing court shall also consider issuing an order restraining the defendant from contact with the victim, which may be valid for up to 15 years …”
- California Family Code 6345(a): “… may have a duration of not more than five years, subject to termination or modification by further order of the court either on written stipulation filed with the court or on the motion of a party.”
- California Code of Civil Procedure 533: “… the court may on notice modify or dissolve an injunction or temporary restraining order upon a showing that there has been a material change in the facts …, that the law … has changed, or that the ends of justice would be served by the modification or dissolution …”