A substitute teacher at the Pasadena Independent Schools in Texas was charged Thursday charged with having sex with her 16-year-old student.

She faces a second-degree felony charge of improper relationship with a student and sexual assault of a child between the ages of 14 and 16.

Mug shot of Olivia Huerta, 23, charged with having sex with her 16-year-old student

At her arraignment Thursday, Huerta's bond was set at $40,000. The 23-year-old took over as the fill-in social science teacher at Sam Rayburn High School between January and April of 2018, court documents indicate.

During that time, police allege Huerta brought the teenage student to her parent's house to have the one-night stand.

A tip led detectives to an arrest earlier this year, as the student told his friend about the sexual encounter. The friend contacted police, who began an investigation, KPRC reported.

When cops spoke to the victim, he told them that he walked with the teacher to have sex at her parents' house.

He also said they exchanged phone numbers and had conversations via text and Snapchat.

While not recalling the teacher's name, the student allegedly described to police that she was a short, curvy and Hispanic.

Olivia Huerta at her arraignment Thursday. Bond was set at $40,000 for a felony charge of having sex with a minor

Cops showed him several photos and he was able to identify Huerta, KPRC reported.

She was arrested after reportedly admitting to having sex with the teenager when questioned by police.

Huerta also turned over her phone where inappropriate messaging were found with the student, police said.

'Upon receiving the allegation, the administration at Sam Rayburn High School immediately notified district administration and the Pasadena ISD Police Department,' school district officials wrote in a statement to KPRC.

'The accused individual was promptly removed from campus and is no longer employed by Pasadena ISD.'