Investigators said Eric Ramirez met the underage girl while working as a substitute teacher in her class.

District administrators tell KOCO 5 they learned of the charges against the wrestling coach after charges were filed, but he was terminated weeks ago when they found out he was friends with the student on Facebook.

“As far as personal Facebook accounts, students are not supposed to be friends with teachers on Facebook ... And it this case there was a violation of that,” said Brayden Savage, a spokesperson for the Western Heights School District.

School administrators said they first learned Ramirez was Facebook friends with a senior girl when her mom emailed the principal.

“We did do an investigation and found that to be true,” said Savage.

Within 24 hours, Ramirez was terminated and police contacted. According to court documents, "while in class, the victim noticed the defendant staring at her, which eventually led to them exchanging phone numbers and befriending each other on Facebook."

Detectives went through the girl’s phone. They uncovered nude photos and text messages revealing that the relationship between student and teacher was sexual.

This is not the first time a coach at Western Heights has been charged with sleeping with a student.Last year, basketball coach Tyrone Nash was convicted and sent to prison. The district says they work hard to protect their students by performing background checks and extensive training.

“It makes you very angry, shocked, upset, all of those things,” said Savage.

As of Monday evening, Ramirez has not been arrested, according to county jail records.