A city school teacher charged with having a sexual relationship with a teenage girl was released Tuesday after posting bail.
Daniel Reilly faces multiple charges including rape and endangering the welfare of a child.
Investigators say the former Marine sergeant was having a sexual relationship for the last eight months with a former student who is currently 14 years old.
Police say their encounters began at Reilly's Forest Hills home in August of last year and continued until just days ago.
The married father taught sixth grade English at I.S. 237 in Queens and has since been removed from the classroom.
An order of protection has been granted for the girl.
"This is totally unacceptable and I've said it repeatedly, keep your hands off our students," schools Chancellor Dennis Walcott said. "This is obviously alleged, so it's not a proven fact yet. But either things that you say inappropriately or things that you do with our students, we have no tolerance for that in our system."
"Prosecutor needs to investigate this case and the defense needs to investigate this case to see whether or not the allegations are true or not," defense attorney Eric Franz said. "He's happy to return home to his family, the judge saw fit to trust him to go home to his family and she did just that."
The girl was a former sixth grade student of the teacher.
Prosecutors say the relationship was revealed when her sister found explicit text messages from Reilly on her phone.
He faces up to seven years in prison if convicted and is scheduled to be back in court next month.