A Texas middle school teacher was busted by police in a hotel room with a 15-year-old former student, authorities said.

Crystal Nicole Rodriguez, 28, was arrested Sunday at a San Antonio hotel on charges for having an improper relationship between an educator and student, mySanAntonio reported.

Authorities said the Page Middle School special education teacher confessed to being involved in a sexual relationship with the teen girl.

Rodriguez, who is also a school coach, confirmed to investigators that the 15-year-old girl was a former student, news station KSAT reported.

San Antonio Independent School District officials said Tuesday they are investigating the allegations following the arrest.

“We are working to gather information to ensure we have full knowledge of what has occurred,” the district said in a statement.

Rodriguez was booked at Bexar County Jail and released on a $20,000 bond, according to court records.