A fired Texas teacher and coach has pleaded guilty to sleeping with one of her students, but has now launched legal action against the victim's mother, accusing the woman of defamation.

Tanya Ramirez, 31, struck a deal with prosecutors earlier this month and pleaded guilty to the second degree felony charge of having an improper relationship with a student, in exchange for seven years of probation.

She will also have to surrender her teaching license and pay a $4,000 fine, but will not have to register as a sex offender.

The former teacher and coach at King High School in Corpus Christi was fired in 2014 as allegations surfaced and initially faced up to 20 years in prison.

No prison time: Tanya Ramirez, 31, struck a deal with prosecutors earlier this month and pleaded guilty to the second degree felony charge of having an improper relationship with a student

Tanya Ramirez - seen in court this month - admitted to having sex with one student but pleaded 'no contest' to the charge involving the second student

She has also pleaded 'no contest' to a charge involving a second student.

However, Ramirez has now filed a defamation lawsuit against the mother of the student with whom she had an affair, Breitbart News reported.

She is also considering suing the student for invasion of privacy, according to reports.

The lawsuit against the mother, Kimberly Tademy, was filed in August, for calling her a 'sexual predator' and accusing her of sexual misconduct with other students, KRIS 5 reported.

Ramirez claims these comments caused her emotional distress and led to her losing a job at a local Jiu Jitsu academy.

For the potential invasion of privacy lawsuit, Ramirez claims the student filmed their sexual encounter and later shared it.

Lawyers for Ramirez previously claimed the 17-year-old male from the first charge was legally an adult when they had sex and he also was not her student, the Corpus Christi Caller-Times reported.

In Texas, 17 is the age of consent.

The former teacher and coach at King High School in Corpus Christi (pictured) was fired in 2014 as allegations surfaced and initially faced up to 20 years in prison

Ramirez's attorney, Christopher Gale, said: 'Our client is dismayed at the additional, untrue allegations and looks forward to her day in court.'

Not much is known about the second student, but District Attorney Mark Skurka confirmed it is a different individual than the 17-year-old male, although the age of the alleged victim is unclear.

Authorities claim they identified Ramirez in a cell phone recording related to the first charge that shows a woman with an eight-inch tattoo on her lower back.

The student she is accused of having sex with remained one of the most popular kids in school until he graduated from King and even started college this month, according to KRIS 6 News.