Hampton University, a private school in Virginia, said on Thursday that it had fired nine officers from its Police Department after a school investigation uncovered racist and misogynistic posts they had shared on social media.

The university said in a statement that it fired the officers for “egregious violations of the university’s code of conduct.”

“Every member of the Hampton University community must adhere to the university’s code of conduct,” the university said in an emailed statement. “After a full investigation, it was determined that the officers shared misogynistic, racist and other offensive remarks via social media.” The university said it had “zero tolerance for such behavior.”

The Hampton University Police Department employed 27 sworn officers in 2018, according to state figures. The department also employs 10 “security officers,” according to its website.