A hostile work environment can be a form of discrimination. For instance, if an employee calls someone a racial slur, and the employer fails to intervene, this is discrimination. The employer has allowed a hostile work environment to take over. It is nearly impossible for that employee to work at that location because of the hostility.