Attachment and OCD: When Control Is How You Survive Uncertainty

OCD is typically understood primarily as a neurobiological condition — and there is genuine neurological basis to it, with well-documented anomalies in the orbitofrontal-thalamo-striatal circuit that are associated with the doubt, incompleteness, and intrusive thought that characterize the disorder. The neurobiological component is real, and treating it with the evidence base (primarily ERP, exposure and response prevention, and sometimes medication) is the appropriate clinical approach.

But the neurobiological account doesn’t fully explain why some people develop OCD and others don’t, why OCD so often focuses on relational or contamination-related themes, or why OCD severity tends to increase during periods of relational stress and instability. For a meaningful subset of people with OCD, the attachment history is a relevant part of the picture — not a replacement for the neurobiological explanation, but an important context for understanding what the OCD is doing and why it persists.

Uncertainty as the Common Thread

The mechanism that connects attachment insecurity to OCD vulnerability runs through uncertainty.

Attachment security, at its core, is about the child’s ability to develop reliable expectations about whether caregivers will be available when needed. A child with a secure attachment base develops what we might call a comfortable relationship with uncertainty: they don’t know exactly when the caregiver will be back, but they have enough relational history to trust that they will come. The uncertainty is tolerable because the underlying relational expectation is reliable enough.

Anxious attachment disrupts this in a specific way. When the caregiver’s availability has been genuinely inconsistent — sometimes present and attuned, sometimes absent or preoccupied — the child can’t develop that comfortable relationship with relational uncertainty. Every absence carries more alarm than it should, because the track record doesn’t clearly support the assumption that the caregiver will return. The uncertainty about connection becomes a chronic, low-level emergency.

Avoidant attachment disrupts it differently but with the same underlying theme. Having learned that emotional needs aren’t reliably met, the avoidantly attached person may compensate through an excessive investment in controllable, predictable domains. If relationships are unpredictable, at least some aspects of life can be made certain. The need for certainty and control becomes a compensation for the relational world’s fundamental uncertainty.

OCD is, in one of its aspects, a sophisticated certainty-production system. The obsession generates doubt; the compulsion temporarily resolves the doubt. The problem is that the resolution never holds — the doubt returns, the compulsion must be repeated, the cycle continues. What OCD provides is not actual certainty but the illusion of certainty management — a sense of doing something about the intolerable uncertainty rather than sitting with it unmanaged.

The Content of OCD and Attachment Themes

The specific content of OCD obsessions and compulsions varies enormously — contamination, harm, symmetry, religion, sexuality, relationships. But a striking number of OCD themes have explicit attachment relevance.

Relationship OCD (ROCD) — obsessive doubt about whether a romantic partner is “the right one,” whether one truly loves the partner, whether the partner truly loves them — is a fairly direct mapping of anxious attachment vigilance onto a specific relational question. The person with ROCD cannot settle into the inevitable uncertainty of intimate relationship: love cannot be proved beyond reasonable doubt, the future cannot be guaranteed, the partner cannot be perfect. The OCD demands proof that is definitionally unavailable, generates doubt about what can’t be controlled, and demands repeated reassurance that temporarily relieves the anxiety before the doubt returns.

Harm OCD — the intrusive fear of harming loved ones — often occurs in people who are deeply devoted to their relationships and whose OCD content seems to represent the inverse of their actual relational values. This can be understood partly as anxious attachment’s hypervigilance to relational threat, turned inward: the OCD monitors for anything that could damage the relationships that are most important, including the person’s own potential for harm.

Contamination OCD, when it centers on protecting specific others from harm — protecting family members from illness, refusing to touch things that might hurt loved ones — again reflects a hyperactivated protective function that has attachment themes.

Attachment and ERP: What Gets Added

Exposure and response prevention is the most evidence-supported treatment for OCD, and recommending it is appropriate. But for people whose OCD has significant attachment underpinnings, ERP alone may produce incomplete results — particularly when the uncertainty the person is most fundamentally intolerant of is relational uncertainty.

Teaching someone to sit with the uncertainty “I might have left the stove on” through ERP is meaningful and builds tolerance for uncertainty generally. But if the underlying issue is a profound intolerance of relational uncertainty that the stove-checking is managing symbolically, the ERP may reduce the specific compulsion while the relational intolerance finds a different outlet — a new OCD theme, or increased anxiety in a different domain.

What attachment-informed work adds to OCD treatment:

Addressing the relational context of the OCD — understanding what life circumstances, relational stressors, and attachment activations tend to intensify OCD symptoms. This information helps the person understand their OCD as responsive to their relational world rather than as a random neurological event.

Working on the tolerance of relational uncertainty specifically — developing the capacity to stay in the not-knowing that any genuine relationship involves, without either performing compulsions to manage the anxiety or avoiding relational closeness to avoid the risk.

Using the therapeutic relationship as a corrective experience with uncertainty — the therapeutic relationship itself involves genuine not-knowing (will this work? does the therapist really care? will they be available when I need them?) that the person with OCD and attachment insecurity will inevitably navigate. Attending to how they navigate it in the room provides real-time data and opportunity for new experience.

OCD and attachment insecurity both, at some level, involve difficulty with the fundamental human condition of not being in control of everything that matters. What changes isn’t the elimination of uncertainty — which is impossible — but the person’s relationship to it. With enough therapeutic work, uncertainty can become something manageable rather than something to be controlled at all costs.


This article is for educational purposes only and is not a substitute for professional mental health treatment. If you are experiencing a mental health crisis, please reach out to a qualified mental health provider or call 988.

Ready to Take the Next Step?

If you'd like support in working through these issues, I'm here to help.

Schedule a Session