Police say Andrew Loef was involved with a 17-year-old female student in September. A warrant was issued for his arrest.
On Thursday, the 27-year-old turned himself in. Loef was released on $60,000 bond and will return to court next month.
McHenry School District 156 has declined to say which high school Loef worked at.