Obsessive–compulsive disorder (OCD) is a mental disorder in which an individual has intrusive thoughts (an obsession) and feels the need to perform certain behaviors (compulsions) repeatedly to relieve the distress caused by the obsession, to the extent where it impairs general function.
Obsessions are persistent unwanted thoughts, mental images, or urges that generate feelings of anxiety, disgust, or discomfort. Some common obsessions include fear of contamination, obsession with symmetry, the fear of acting blasphemously, sexual obsessions, and the fear of possibly harming others or themselves. Compulsions are repetitive actions performed in response to obsessions to reduce anxiety, such as washing, checking, counting, reassurance seeking, and situational avoidance.