Obsessions and compulsions are two types of symptoms associated with OCD. Examples of obsessions, or unwanted thoughts, could include:
images of hurting others or yourself
thoughts you consider immoral, bad, or shameful
urges to do something you don’t want to do
Some examples of compulsions include:
repeating words or phrases mentally
hand-washing, cleaning and grooming to avoid contamination
excessively repeating an action
counting or performing other rituals to prevent harm