Some people hate the military. They’re wrong, of course, to live under the very protection the military provides while criticizing the way in which they provide it. And the irony is lost on them that the military ensures their right to freedom of expression — which includes their right to express hatred for the military.

But that doesn’t give a teacher the right to go on a profane rant in front of a classroom full of high school students.

One such teacher learned that lesson the hard way. Gregory Salcido, a history teacher at El Rancho High School, and elected Pico Rivera city councilman, was fired Tuesday after a recording emerged. Board of Education president Aurora Villon said the El Rancho Unified School District reached a unanimous decision to fire him, the Los Angeles Times reported.

“His comments do not reflect what we stand for, who we are,” Villon said, adding that “the classroom should never be a place where students feel that they are picked at, bullied, intimidated.”

A student recorded Salcido asking his government class why they would serve in the military, calling those who serve “dumbs***s.”

“Think about the people who you know who are over there. Your freaking stupid Uncle Louie or whatever. They’re dumbs‑‑ts,” Salcido said in the January 25 rant. “They’re not like high-level thinkers, they’re not academic people, they’re not intellectual people. They’re the lowest of our low.”

Said the New York Post:

Villon said thousands of emails flooded the school board, as veterans and relatives of military personnel from all over the world voiced their disgust with Salcido’s comments.

Salcido apologized at a City Council meeting in February, the paper reported, and attempted to clarify that his comments “had nothing to do with their moral character.”

“I don’t think it’s all a revelation to anybody that those who aren’t stellar students usually find the military a better option. … That’s not a criticism of anybody. Anything I said had nothing to do with their moral character,” he said, the paper reported.

During a break, he told reporters that he believes the military is the not the “best option” for his students, but added “that does not mean I’m anti-military, because I’m not.”

The student who secretly recorded Salcido — later identified by KTLA-TV as Victor Quinonez — told Fox News opinion writer Todd Starnes in January that his teacher had “a history of being anti-military.”

“Everyone’s entitled to their own opinion but at the same time they shouldn’t be disrespecting the veterans who have fought for our rights, who give up their lives and do stuff that other people are not willing to do,” Quinonez, who says he wants to be a Marine, told Fox News.