There are other ways to stop thinking about him that are much healthier and simpler.

Having a relationship end can be a painful experience, particularly when your thoughts continually drift back to your ex. Whether your relationship just ended or you’re still struggling to get past the hurt months later, you may feel that these constant thoughts are preventing you from moving on.

Change the direction of the thoughts. Go ahead and imagine the places you went, the time you spent together, and the things you wish you would have done. Start to pick out the things that, whether you were with him or not, would leave a wonderful impression in your heart.

Fortunately, there are several techniques that can help you accept that the relationship is over and finally stop thinking about your ex.

1. Make up your mind

If you going to think about him, you are going to think about him. However, is that what you really want to do? Staying stuck on someone who moved on is silly. So if you really want to forget about him, make up your mind to do it. Resolve to think less about him and more about what you learned from the relationship. Assess yourself, and find out how to do better next time.

2. Get closure

Tell yourself that you two were not meant to be. Sure, you miss him, but he moved on. Even if you are not sure he found someone else, tell yourself this. He moved on, and so should you.

3. Do not go looking for them

In other words, do not go seeking closure. Do not pull out your phone right before going to sleep to see if he posted anything new on social media. You might see something you do not like.

That will make going to bed even harder, and you will be closing your eyes on negative emotions. Again, look back fondly on the times you spent with him, but do not obsess over what no longer exists.