CA PC 166 Contempt of Court: Conduct, Penalty Tiers, Defenses

California Penal Code Section 166 is the state’s criminal contempt of court statute. It makes it a crime to willfully defy a court’s authority, whether by disrupting a courtroom or ignoring a judge’s order outside of one. Most violations are misdemeanors carrying up to six months in county jail. Violating a domestic violence protective order raises the ceiling to one year, and a second violent violation within seven years can be filed as a felony punishable by up to three years in state prison.

Conduct That Qualifies as Contempt

PC 166 covers two very different kinds of behavior. The first is direct contempt: things you do in front of the judge. This includes disruptive or insulting behavior during a hearing, physically resisting a bailiff carrying out a court directive, and refusing to be sworn in as a witness or answer a material question without a valid legal privilege like the Fifth Amendment.1California Legislative Information. California Penal Code 166 Because the judge witnesses the behavior firsthand, these cases can be handled on the spot.

The second and far more common category is indirect contempt: disobeying a court order outside the courtroom. The classic example is violating a protective order or restraining order. If a judge issues a no-contact order in a domestic violence case, contacting the protected person violates PC 166 even if that person reached out to you first. The order binds the restrained party regardless of who initiates contact. Indirect contempt also covers ignoring family court orders on custody or support, disobeying injunctions, and violating stay-away orders issued in criminal cases.

What the Prosecution Must Prove

A PC 166 charge hinges on willfulness. That means you knew what the court order said, or had a reasonable opportunity to learn, and chose to violate it anyway. An accidental violation or one caused by genuine confusion about an ambiguous order doesn’t meet this standard.

For the most commonly charged version, violating a court order under PC 166(a)(4), the prosecution has to establish four things: a court issued a lawful written order, you knew about the order and its contents, you had the ability to follow it, and you intentionally broke it.2Justia. CALCRIM No. 2700 – Violation of Court Order Prosecutors don’t have to prove you read the order word for word, but they do have to show you were aware of it and had the chance to learn what it required.

Penalties by Tier

What you’re facing depends on the type of order you violated and whether you have priors. California structures the penalties in escalating tiers.

Standard Misdemeanor

Most PC 166 violations fall under subdivision (a) and carry the default California misdemeanor penalty: up to six months in county jail, a fine up to $1,000, or both.3California Legislative Information. California Penal Code 19 First-time offenders with no aggravating circumstances often receive informal probation instead of jail.

Enhanced Misdemeanor for Protective Order Violations

When the violated order is a protective or stay-away order tied to domestic violence, elder abuse, or certain criminal proceedings, the maximum jail sentence doubles to one year in county jail, with fines up to $1,000.1California Legislative Information. California Penal Code 166 The statute lists the specific order types that trigger this enhancement, including witness protection orders in criminal cases, domestic violence restraining orders, and orders issued after convictions for elder or dependent adult abuse.

Wobbler for Repeat Violent Violations

A second or subsequent conviction for violating one of those protective orders within seven years becomes a wobbler if the violation involved violence or a credible threat of violence. Prosecutors can file it as a misdemeanor with up to a year in county jail, or as a felony punishable by 16 months, two years, or three years in state prison.1California Legislative Information. California Penal Code 166 The seven-year window and the violence requirement both have to be present before the felony option is on the table.

Contact After a Stalking Conviction

If you’ve previously been convicted of stalking under PC 646.9 and then willfully contact the victim by phone, mail, social media, or in person, you face up to one year in county jail, a fine up to $5,000, or both. Each separate act of contact counts as its own violation, so multiple contacts can stack into multiple counts. Being incarcerated at the time you make contact is not a defense.1California Legislative Information. California Penal Code 166

Firearm possession while subject to a qualifying protective order is punished separately under PC 29825, not PC 166. The statute prevents double prosecution for the same firearm possession under both sections.1California Legislative Information. California Penal Code 166

Defenses That Actually Work

The elements the prosecution has to prove create natural openings for a defense.

  • No knowledge of the order. If you were never properly served or genuinely didn’t know the order existed, the willfulness element fails. Prosecutors have to show you knew about the order and had an opportunity to learn its terms.2Justia. CALCRIM No. 2700 – Violation of Court Order
  • Inability to comply. You can’t be convicted for failing to do something that was impossible for you. If a court orders you to pay a specific amount and you genuinely lack the funds or ability, that inability is a defense.2Justia. CALCRIM No. 2700 – Violation of Court Order
  • The order was unlawful or unconstitutional. California courts allow you to challenge the validity of the underlying order as a defense to the contempt charge. If the order violated your constitutional rights or was issued without proper authority, a conviction for disobeying it cannot stand.2Justia. CALCRIM No. 2700 – Violation of Court Order
  • Probation condition, not a court order. PC 166(a)(4) applies to court orders, not probation conditions. Violating a probation condition is handled through revocation proceedings, not a separate contempt prosecution.

One argument that doesn’t work: claiming the protected person invited the contact. The restraining order binds the person it restrains. Even mutual contact violates the order if you’re the restrained party. “But they called me” is not a defense.

Criminal Contempt vs. Civil Contempt

California treats criminal and civil contempt as different tools. Criminal contempt under PC 166 punishes past behavior. Civil contempt, governed by Code of Civil Procedure Sections 1209 through 1222, forces future compliance.4California Legislative Information. California Code of Civil Procedure 1209

The practical difference matters. A criminal contempt conviction goes on your record and carries fixed penalties. Civil contempt doesn’t produce a criminal record, and the person found in contempt controls when the punishment ends by agreeing to comply. The moment you do what the court ordered, you walk out.

Civil contempt penalties are also lighter. A general finding can result in a fine up to $1,000, up to five days in jail, or both. Family law contempt escalates: a first finding can mean up to 120 hours of community service or jail time per count, a second adds mandatory jail on top of community service, and a third or subsequent finding raises both caps to 240 hours per count.5California Legislative Information. California Code of Civil Procedure 1218

The same conduct can sometimes be pursued through either track. A parent who refuses to pay court-ordered child support could face civil contempt to coerce payment or criminal contempt to punish the defiance.

Consequences Beyond the Sentence

Jail time and fines are only part of the picture. A criminal contempt conviction creates a permanent criminal record unless you later get it expunged. In a family court dispute, a contempt conviction can influence custody and visitation decisions because judges factor criminal history into the best-interests analysis.

Non-citizens face additional risk. Federal immigration courts have treated protection order violations as removable offenses in some circumstances, particularly when the underlying conduct qualifies as a crime involving domestic violence. Even a misdemeanor contempt conviction tied to a domestic violence protective order can trigger deportation proceedings or create barriers to adjusting immigration status. Anyone in this situation should consult an immigration attorney before entering a plea.

Because criminal contempt carries potential jail time, you get the constitutional protections that come with any criminal prosecution. The state has to prove every element beyond a reasonable doubt, you have the right to an attorney, and if you can’t afford one the court must appoint counsel before any critical stage where incarceration is a realistic possibility. Most single-count misdemeanor contempt cases are tried by a judge; a jury trial only becomes available once the potential cumulative jail time crosses the six-month mark.6Judicial Branch of California. Contempt Procedures