A Texas high school teacher was taken into custody Friday after video was posted online showing her repeatedly slapping a black student as he sat at his desk trying to cover up.

According to KHOU, Mary Hastings,63, a teacher at Ozen High School near Beaumont was arrested for assault.

In the video — shot by another student, — Hastings can be seen repeatedly hitting the student as he sits at his desk, calling him an “idiot ass,” then mocking him afterwards when he asks, “Why’d you do that?”

According to a statement from Beaumont school district, the video of Hastings was then given to BISD police and school administrators.

The geometry teacher posted a bond of $2,500 in the misdemeanor assault charge at the Jefferson County jail and was released.

The school district stated that she has been placed on administrative leave during the investigation.

Watch the video below via KHOU: