Obsessions and Compulsions
An obsession is an unwanted and unpleasant thought, image or urge that repeatedly enters your mind, causing feelings of anxiety, disgust or unease.
A compulsion is a repetitive behaviour or mental act that you feel you need to do to temporarily relieve the unpleasant feelings brought on by the obsessive thought.