A California teacher who was jailed for having sex with a 16-year-old student — is now suing him for damaging her reputation, according to a report.

Tara Stumph, 36, a married former Arroyo Grande High School teacher, was sentenced to 180 days in the slammer for having sex with a person under 18.

But the former cooking teacher came out swinging by filing a counterclaim, claiming the victim defamed her “to various classmates, family and other members of the community,” The Tribune of San Luis Obispo reported.

Stumph and her former employer, the Lucia Mar school district, were named as defendants in a lawsuit by the victim’s family.

The boy’s family and the district are expected to enter a binding mediation process with Santa Barbara mediator Henry Bongiovi, the paper reported.

Stumph’s teaching license was pulled after her conviction, but she will not have to register as a sex offender when she is released from San Luis Obispo County Jail.

The victim claims Stumph molested him “during and after class” and sent nude selfies and X-rated videos of herself to him, the outlet reported.

She also had sex with him after school, for months, behind her firefighter hubby’s back, the paper reported.

“The sexual abuse and exploitation of (the victim), and the circumstances under which it occurred caused (him) to develop various psychological coping mechanisms, which reasonably made him incapable of ascertaining that Stumph’s conduct was harmful to him,” according to court documents.

She had faced five sex charges and an eight-month investigation, but four were dropped in a plea deal, the Tribune reported.