Divorce can be a really hard thing to get through, and it can be caused by many things. In fact, a study published in the Journal of Family Issues found that infidelity was the leading cause of divorce (21.6% of respondents say it ended their marriage). Even though it can be very challenging to cope with issues like these, it’s how you handle it that can make all the difference.

First, no matter how stressed out you may feel, it’s essential to focus on important deadlines and tasks associated with the divorce process. Tasks such as paying your divorce laywer and changing your address (which must be done 14 days before you move or your mail could end up in the wrong hands, risking the exposure of your personal information). Of course, if divorce stress is getting your mental health down, there are ways to help you cope with the situation mentally and physically.

As hard as this may sound, The Good Men Project says you need to do your best to keep a healthy perspective. You’re likely going to find yourself thinking at times that nothing will ever be okay and you’ll never fall in love again. However, try your best to get your head out of that mindset and remind yourself that there is a light at the end of this tunnel. You need to tell yourself that your feelings of sadness won’t last forever and remember how you felt in the past following a breakup. That feeling didn’t last forever then, so ask yourself how you’ll feel about this situation in a month or a year from now. Life goes on and these feelings will diminish.

Medical News Today says it’s also important to take care of yourself physically. It can be really easy to let yourself go while you’re struggling with something so mentally draining. Instead of grabbing a pizza for dinner because it’s a comfort food and you don’t have to worry about cooking anymore, get yourself in the kitchen and cook a healthy meal just for you. It’s an easy way to distract yourself from what is happening since you’ll be so focused on what you’re actually cooking. It’ll also keep your physical health in check since you’re not going to be consistently throwing back fast food. The unhealthy food can actually make yourself feel a lot worse, so try your best to stick with the healthy options.

Along with mentally coping with what has happened, The Good Men Project suggests that being kind can help you cope with your divorce. Regardless if you’re being kind or receiving kindness, you will feel a sense of caring and connection. Surprisingly, kindness can help to improve your immune system and give you a hit of serotonin, which is a chemical to help alleviate depression.

Divorce can be hard to get through, but there are ways to help make the situation a lot easier to cope with. Take a look at the suggestions above and remember that this won’t last forever.