Violating a restraining order is a serious offense in California. A restraining order is issued by a court to protect a person from physical harm, threats, harassment, or stalking. Violating the terms of this order is a criminal act, even if the other party consents to the contact. Example: If a restraining order prohibits someone from contacting their ex-spouse and they attempt to do so by phone, email, or in person, they could face additional criminal charges for violating the order. Penalties: Violating a restraining order can be charged as either a misdemeanor or a felony, depending on the severity of the violation and prior history. A misdemeanor conviction may result in up to 1 year in county jail, while repeat or more serious violations can lead to 3 years in state prison.