Obsessive-compulsive disorder is classified by the DSM-5-TR as an anxiety-related condition but now sits in its own chapter — “Obsessive-Compulsive and Related Disorders” — because its mechanism is distinct from generalized anxiety. Where anxiety disorders center on threat appraisal, OCD centers on an intrusive thought that feels unacceptable, followed by urgent behavioral or mental attempts to neutralize it.
Everyone has intrusive thoughts. Most people notice them briefly and move on. In OCD, the thought gets flagged as highly significant and dangerous — the brain generates an alarm that demands a response. The compulsion provides temporary relief, but relief reinforces the alarm: if I had to do all that to feel safe, the thought must have been truly dangerous. The cycle spirals.
OCD affects about 1–2% of the population, affects men and women equally in adults, and most commonly emerges in late childhood or early adulthood. Without treatment it is typically chronic and tends to worsen under stress.