The substitute teacher fired for ripping a hijab from the head of an 8-year-old Muslim girl has been arrested, police said.

Oghenetega Edah turned himself in to cops at the 45th Precinct in the Bronx on Wednesday after the NYPD’s Hate Crime Task Force concluded its investigation into the May 2 incident.

He has been charged with endangering the welfare of a child and aggravated harassment, police said.

The incident happened at the Bennington School on Adee Avenue when the teacher reprimanded the girl for sitting in his chair without his permission.

Edah reportedly tapped the girl on the shoulder and told her to move. When she refused, he threatened to take her head scarf. When she again refused to get up, Edah tore the hijab away, poking her in the eye in the process, authorities said.

Edah was fired by the Department of Education on May 3. He had been working as a substitute.