OCD has 3 main elements:
obsessions – where an unwanted, intrusive and often distressing thought, image or urge repeatedly enters your mind
emotions – the obsession causes a feeling of intense anxiety or distress
compulsions – repetitive behaviours or mental acts that a person with OCD feels driven to perform as a result of the anxiety and distress caused by the obsession