A Baltimore city teacher has been fired a day after a video surfaced showing the educator call a room full of black students a racial slur.

The video, uploaded to Facebook on Wednesday by a distraught parent, shows a science teacher at Harlem Park Elementary/Middle School escorting a student out of her classroom.

“Get out of my class,” the teacher ― who has not been identified ― can be heard yelling to the student. Less than a minute later, she begins berating her other students, threatening to give them zeros on their assignments and using racist language.

“You’re idiots!” the teacher shouts. “You have the chance to get an education, but you want to be a punk-ass n****r who’s gonna get shot.”

Students in the classroom react audibly, and one asks the teacher to “stop saying that.”

“You’re stupid, you’re stupid,” the teacher continues shouting. “Learn something, be a man.”

The video amassed more than 1 million views on Facebook.

On Thursday, Baltimore City Public Schools released a statement saying the teacher had lost her job.

“No form of discriminatory behavior of any kind is or will be tolerated,” the statement read.