Ex-South Texas teacher who had sex with 17-year-old student sues him for filming encounter The video ended up on YouTube and was a key part of the investigation.

Tanya Ramirez, a 31-year-old former teacher and coach at King High School, was convicted on a charge of inappropriate relationship between an educator and student. Tanya Ramirez, a 31-year-old former teacher and coach at King High School, was convicted on a charge of inappropriate relationship between an educator and student. Image 1 of / 98 Caption Close Ex-South Texas teacher who had sex with 17-year-old student sues him for filming encounter 1 / 98 Back to Gallery

A Corpus Christi teacher who was convicted of having sex with a 17-year-old student and pleaded no contest to an affair with another has sued the first student for recording their sexual encounter.

The New York Daily News reported Tanya Ramirez, a 31-year-old former teacher and coach at King High School, claims in a lawsuit that the student caused her emotional distress by filming them during sex in 2014, sharing the video with friends and allowing it to be posted to YouTube.

The student later provided the cellphone recording to the police showing Ramirez bent over with a tattoo on her lower back.

"You can't have sex with someone and film it without their knowledge, and post it on the Internet," Amie Pratt, a lawyer for Ramirez, told the Daily News.

RELATED: NEISD elementary teacher arrested on aggravated sexual assault of a child charge

Ramirez has also filed a defamation lawsuit against the student's mother for speaking to the press about the teacher and calling her a predator, The Corpus Christi-Caller Times reported.

Additionally, Ramirez's lawyers are challenging the constitutionality of the charges against the former teacher, appealing the case before the 13th Court of Appeals.

RELATED: Louisiana teacher, daughter of school board member, accused of sex with female student

The 31-year-old former teacher pleaded guilty on Jan. 11 to a second-degree felony charge of improper relationship between an educator and student.

Ramirez will receive seven years probation in that case.

She pleaded no contest on a second charge of having sex with a separate student, according to the Caller-Times.

It is unclear whether she still faces punishment in the second case or whether it was part of the plea deal.

RELATED: Texas high school teacher, former OU Sooners baseball player, accused of sex with female student

Under the plea deal, Ramirez will have to surrender her teaching license but will not have to register as a sex offender, according to KIII TV.

Both students were believed to be at least 17 years old at the time.

Scroll through the slideshow to see which Texas teachers have run afoul of the law and gotten caught having inappropriate sexual relations with students.

jfechter@mySA.com

Twitter: @JFreports