What Is Contempt of Court in a California Criminal Case? Penal Code 166 Explained
The short answer: criminal contempt of court under Penal Code section 166 is the crime of willfully disobeying a lawful court order or disrupting court proceedings, and in Southern California it is most often charged when someone contacts a protected person in violation of a criminal protective order or a stay-away condition of probation. It is usually a misdemeanor, but a second violation of a protective order involving violence or a credible threat can be charged as a felony. The prosecutor must prove that a valid order existed, that you knew about it, that you were able to comply, and that you willfully violated it. Those four elements are where most of these cases are won or lost, and this guide walks through each one along with the defenses, the penalties, and the collateral consequences for custody and firearms. Gramling Law Group handles these cases from the Riverside Hall of Justice to the Victorville courthouse, and our criminal defense practice page explains how we approach them.
What Penal Code Section 166 Covers
A broad statute with one common use. Penal Code section 166, subdivision (a), lists several forms of contempt, including disorderly or insolent behavior that interrupts a court proceeding, a breach of the peace or loud noise that disturbs court, refusing to be sworn or to answer as a witness, and willful disobedience of the terms of any process or order lawfully issued by a court. That last category, willful disobedience of a court order, accounts for the overwhelming majority of contempt prosecutions in Riverside, San Bernardino, and Los Angeles County criminal courts.
Protective order violations. Subdivision (c) of section 166 specifically addresses willful and knowing violations of a protective order issued in a criminal case under Penal Code section 136.2, and of stay-away or no-contact orders imposed as conditions of probation in domestic violence, elder abuse, and dependent adult abuse cases. These are the orders judges issue on Judicial Council form CR-160 at the arraignment of almost every domestic violence case. Our guide on the criminal protective order under Penal Code section 136.2 explains how the orders are issued and modified.
How section 166 differs from section 273.6. Violating a civil domestic violence restraining order, an emergency protective order, a civil harassment order, or a workplace violence order is generally charged under Penal Code section 273.6. Violating a protective order issued in a criminal case or as a condition of probation is charged under section 166. Prosecutors sometimes file both when a defendant is subject to overlapping civil and criminal orders. Our article on violating a restraining order under Penal Code section 273.6 covers the civil order side.
Criminal contempt versus civil contempt. Family and civil courts also punish contempt, under Code of Civil Procedure section 1209 and related sections, for violations of custody, support, and property orders. That process is handled in the family or civil case and is a different proceeding from a Penal Code section 166 charge filed by the District Attorney. This article addresses only the criminal charge.
What the Prosecutor Must Prove
The elements. To convict under section 166 for violating a court order, the prosecutor must prove beyond a reasonable doubt that (1) a court lawfully issued a written order, (2) the defendant knew of the order and its terms, (3) the defendant had the ability to follow the order, and (4) the defendant willfully violated it. For a protective order charge under subdivision (c), the order must be one of the types the subdivision lists, and the prosecutor must show the violation was knowing. These elements track the pattern jury instructions on violation of a court order, CALCRIM 2700 and 2701.
Lawfully issued. The order must have been within the court's power to make and must have been in effect at the time of the alleged violation. An order that expired, that was terminated by a later order, or that was issued without jurisdiction over the defendant cannot support a conviction. The California Supreme Court recognized long ago in In re Berry (1968) 68 Cal.2d 137 that an order void for lack of jurisdiction cannot be the basis of a contempt. Defense counsel should obtain the certified order and the minute orders from the issuing department before the first court date.
Knowledge. The prosecutor usually proves knowledge with the court record showing the defendant was present when the order was issued and signed the CR-160 acknowledgment, or with proof of service. If the defendant was not in court and was never served, knowledge becomes a real issue. Vague recollection of an old case is not enough; the prosecutor must prove the defendant knew the specific terms that were allegedly violated.
Ability to comply. The defendant must have been able to follow the order. If a protective order required the defendant to stay away from a residence and the protected person moved into the only home the defendant could lawfully reach, or if the two were placed in the same courtroom hallway by the court itself, ability to comply and willfulness both come into question. These situations are more common than people expect in small communities such as Hesperia, Yucca Valley, or Banning.
Willfulness. Willful means on purpose. An accidental encounter at a grocery store in Apple Valley, or a text sent to a group thread that happened to include the protected person, is not a willful violation if the defendant did not intend the contact and left or stopped immediately. Prosecutors often rely on the protected person's account and on phone records, so the details of who initiated contact and what happened next matter a great deal. Our article on what makes a criminal case weak explains how these proof gaps are exploited.
Common Defenses to a Section 166 Charge
No knowledge of the order. When the defendant was not present in court, was never served, or was served with a different version of the order than the one allegedly violated, the knowledge element fails. This defense depends on the court file, so counsel should pull the docket, the proof of service, and the signed acknowledgment early.
The order was invalid or expired. Criminal protective orders have end dates, and probation terms end when probation ends. If the alleged contact happened after the order lapsed, there is no crime. Orders issued without notice and an opportunity to be heard, or issued in a case that was later dismissed without a replacement order, can also be challenged.
Accidental or incidental contact. Running into the protected person at a child's school in Corona, at a court hearing both were required to attend, or in a public place neither expected is not a willful violation if the defendant promptly left. Surveillance video, witness statements, and the defendant's own immediate departure can establish this.
The protected person initiated contact. A protective order binds only the restrained person. The protected person cannot violate it, but the protected person's invitation is also not a legal excuse for the restrained person to respond. That said, when the protected person repeatedly reached out, visited, or asked for contact, those facts affect willfulness, undermine credibility, and heavily influence how a prosecutor in Riverside or San Bernardino evaluates the case. Preserve those messages; do not delete them.
The contact was permitted by the order. Many CR-160 orders include peaceful contact exceptions for child custody exchanges, or allow communication through counsel or a court-ordered app. If the alleged violation fell within an exception, the prosecutor cannot prove a violation. The exact wording of the order controls, which is why the certified copy matters.
Insufficient proof of identity. When the alleged violation is a call from a blocked number, a message from a new account, or a visit no one witnessed, the prosecutor must still prove the defendant was the person who made contact. Phone records, IP data, and the protected person's assumptions are not always enough. Our article on whether police can use your text messages against you explains how prosecutors obtain and authenticate this evidence.
Penalties for Contempt of Court
Misdemeanor contempt. Most violations of section 166, subdivision (a), are misdemeanors punishable by up to six months in county jail, a fine, or both, and the court can impose probation with conditions. Judges in Riverside, San Bernardino, and Los Angeles County take willful disobedience of their own orders personally, so even a first offense is treated seriously at sentencing.
Protective order violations. A violation of a protective order under subdivision (c) is a misdemeanor punishable by up to one year in county jail. When the violation involves physical injury, the statute provides for a minimum jail term unless the court finds good cause to depart from it, and a second conviction within seven years for a violation involving an act of violence or a credible threat of violence can be charged as a wobbler, meaning the prosecutor can file it as a felony. The court will also usually extend or tighten the protective order itself.
Consequences for the underlying case. When the contempt charge arises while a domestic violence case is pending, the practical damage is often worse than the new charge. The judge may revoke release, raise bail, or add conditions, and the prosecutor will withdraw favorable offers in the main case. Our guide on how bail and release work explains how a new charge affects custody status, and our guide on plea deals explains how offers move.
Collateral Consequences
Firearms. A conviction for a domestic violence related offense, and the existence of a protective order itself, can bar firearm possession under state and federal law. A protective order issued under section 136.2 requires the restrained person to relinquish firearms, and a contempt conviction tied to that order will be scrutinized when the person later seeks to restore rights. Our article on owning a gun after a domestic violence conviction covers the rules.
Child custody. Family courts treat a violation of a protective order as evidence bearing on domestic violence, and under Family Code section 3044 a finding that a parent committed domestic violence within the past five years creates a rebuttable presumption against awarding that parent custody. A contempt conviction in a criminal courtroom in Murrieta can therefore reshape a custody case in a family courtroom down the hall. Our guide on how a domestic violence arrest affects child custody and our child custody page explain the crossover.
Witness intimidation allegations. When the alleged contact involved asking the protected person not to testify or to drop the case, prosecutors may add a charge under Penal Code section 136.1, which is far more serious than contempt. Our article on dissuading a witness explains why even a well-meaning conversation can be charged this way.
How These Cases Move Through Southern California Courts
Arrest or citation. Many contempt cases begin with a call from the protected person, a police report, and either an arrest or a referral to the District Attorney for a filing decision. In Riverside County the case is heard where the underlying case is pending, often the Riverside Hall of Justice, the Southwest Justice Center in Murrieta, the Larson Justice Center in Indio, or the Banning Justice Center. In San Bernardino County it is the San Bernardino Justice Center or the Victorville, Barstow, Rancho Cucamonga, Fontana, or Joshua Tree courthouses, and in Los Angeles County it is usually the courthouse handling the original case. Confirm the current assignment on each court's website.
Arraignment and release conditions. At arraignment the judge will almost always reissue or tighten the protective order and will consider whether to change bail or release conditions on the pending case. A defendant who is in custody on the new charge should expect the prosecutor to argue that the violation shows the defendant cannot be trusted on release. Our article on what happens at arraignment describes the hearing.
Resolution. Contempt cases often resolve alongside the underlying case. Prosecutors sometimes dismiss the contempt count in exchange for a plea on the original charge, agree to treat it as a probation violation, or, where the contact was minor and the protected person wants the relationship to continue, agree to modify the order to allow peaceful contact. Where the knowledge or willfulness evidence is thin, the defense should press for dismissal; our article on how to get criminal charges dismissed covers the tools.
Do not talk to police about it. A contempt investigation usually involves a detective or deputy calling the restrained person to ask about the contact. Admitting the contact and explaining that the protected person asked for it is a confession to the willfulness element with an excuse that is not a defense. Our guides on what not to say to police and what to do when a detective calls explain the right response.
Frequently Asked Questions
Is contempt of court a misdemeanor or a felony in California?
Usually a misdemeanor. Most violations of Penal Code section 166 are misdemeanors punishable by up to six months in county jail, and protective order violations under subdivision (c) carry up to one year. A second protective order violation within seven years that involves violence or a credible threat of violence can be charged as a felony.
Can I be charged if the protected person contacted me first?
Yes. The order binds only the restrained person, so responding to the protected person's call or text is still a violation even though the protected person initiated it. That history is not a legal excuse, but it bears heavily on willfulness, credibility, and how a prosecutor evaluates the case, and it often leads to a reduced charge or a modified order. Save the messages and give them to your lawyer rather than deleting them.
What is the difference between Penal Code 166 and Penal Code 273.6?
The type of order. Penal Code section 166 covers orders issued in a criminal case, including protective orders under Penal Code section 136.2 and probation stay-away conditions. Penal Code section 273.6 covers civil restraining orders, emergency protective orders, and civil harassment orders. When both kinds of orders are in effect, prosecutors may charge both.
Can a contempt charge affect my custody case?
Yes. A protective order violation is evidence of domestic violence in family court, and under Family Code section 3044 a domestic violence finding within five years creates a rebuttable presumption against custody for that parent. Coordinating the criminal defense with the family law case is essential, which is one reason Gramling Law Group handles both.
Does accidental contact count as a violation?
Not if it was truly accidental and you left. The prosecutor must prove the violation was willful. An unplanned encounter in a store, at school, or at a courthouse is not a crime if you did not seek it out and ended it immediately. Staying, talking, or following the person turns an accident into a willful violation, so leave first and tell your lawyer afterward.
Will a contempt conviction stay on my record?
It can be dismissed later in many cases. A misdemeanor contempt conviction can generally be set aside under Penal Code section 1203.4 after probation is completed, using Judicial Council form CR-180. Our guide on how to expunge a criminal record in California explains the process and its limits.
Talk to a Lawyer Before Your Court Date
Gramling Law Group defends contempt and protective order cases at the Riverside Hall of Justice, the Southwest Justice Center in Murrieta, the San Bernardino Justice Center, the Victorville and Barstow courthouses, and courthouses throughout the Inland Empire, Los Angeles County, Orange County, and Southern California. Daniel Gramling, Esq. offers flat-fee criminal defense and limited-scope options and handles the family law side of these cases as well. Call (909) 654-4575 or contact us through this website for a consultation.
This article is educational and is not legal advice. Reading it does not create an attorney-client relationship. It addresses California law only.
Related Guides From Gramling Law Group
Learn more about our criminal defense practice serving the Inland Empire, Los Angeles County, and Southern California.
Gramling Law Group defends contempt and protective order cases in Riverside, San Bernardino, and Victorville, and throughout the Inland Empire. For the civil side of a restraining order, see our domestic violence restraining order page.
Gramling Law Group
3600 Lime St, Bldg 2, Riverside, CA 92501
Phone: (909) 654-4575
Serving the Inland Empire, Los Angeles County, Orange County, and all of Southern California except San Diego in family law and criminal defense.
Follow Daniel Gramling on Instagram: @californiafamilylawyer




Comments