One of the best ways to weather an unhealthy culture at work is by setting boundaries. Don’t be in this setting any longer than you have to; utilize your lunch break to remove yourself from the environment. At the end of the day, separate yourself from your job by not bringing your work home with you. Leave your job behind when you leave the office each day.

Another coping technique in a toxic work environment is having a good support system in the office. Find allies in other employees you’re friendly with and can trust to rely on for support. A difficult situation can be much easier to deal with when you’ve got someone else who can relate to what you’re going through to commiserate with, vent to, or be sympathetic to your plight.

If you spend enough time in a toxic work environment, odds are you might have to file a complaint at some point. Prepare yourself for this eventuality by documenting everything that happens in the office.