Quick answer

OCD is closely related to anxiety and driven by it, but in current diagnostic systems it's classified in its own category — 'Obsessive-Compulsive and Related Disorders' — rather than under anxiety disorders. Practically, anxiety is at its core, and it shares much with anxiety conditions, but it's now recognized as distinct.

The classification shift

For a long time OCD was grouped with the anxiety disorders, which makes intuitive sense — anxiety is central to how it works. But in current diagnostic frameworks, OCD was moved into its own category, 'Obsessive-Compulsive and Related Disorders,' alongside conditions like hoarding disorder, body dysmorphic disorder, hair-pulling, and skin-picking. This reflects growing understanding that OCD has distinctive features — the specific obsession-compulsion mechanism, particular brain circuitry patterns, and treatment specifics — that set it somewhat apart from classic anxiety disorders, even though the two are deeply related.

Why anxiety is still at its heart

Despite the reclassification, anxiety is unmistakably the engine of OCD. Obsessions generate intense anxiety or distress; compulsions are performed to relieve that anxiety; and the whole cycle is fundamentally an anxiety-driven loop. OCD shares much with anxiety disorders — the fight-or-flight symptoms, the avoidance, the intolerance of uncertainty, the way reassurance briefly soothes then feeds the problem. So it's entirely fair to think of OCD as anxiety-based, and the exposure-based treatment (ERP) is closely related to the exposure therapy used across anxiety disorders.

Why the distinction matters practically

The main practical value of recognizing OCD as its own thing is that it needs its own specialized treatment. General anxiety approaches, or generic therapy, often underperform for OCD, which responds best to ERP specifically — and some standard anxiety-management moves (like reassurance) actively worsen OCD. So while OCD is anxiety-driven and related to anxiety disorders, treating it well means getting OCD-specific, ERP-based care rather than generic anxiety treatment. If you have OCD, that distinction is the one worth acting on: seek a clinician experienced with OCD and ERP.

When to talk to a professional

OCD is very treatable, but it rarely improves on its own — and general talk therapy can accidentally make it worse by becoming a reassurance ritual. Look for a clinician trained specifically in ERP (exposure and response prevention). If intrusive thoughts distress you, that distress is a sign of your values, not your intentions.

This article is for general information only and is not medical advice, diagnosis, or treatment. Always consult a qualified health professional about your situation. If you are in crisis, contact your local emergency number or a crisis line immediately.