howtodepression

Part of The Pathophysiology of Depression the biology and mechanisms

Autoimmune and Infectious Contributors to Depression

Autoimmune processes and infections can contribute to depression, ranging from rare but treatable autoimmune encephalitis that mimics psychiatric illness to broad epidemiological links between immune activation and mood disorders.

Medically reviewed · Last updated June 2026 · 10 min read

Contents
  1. 1The Hypothesis and Why It Matters
  2. 2Autoimmune Encephalitis: The Dramatic, Treatable Mimic
  3. 3Autoimmune Disease and Depression
  4. 4Infectious Contributors
  5. 5Mechanisms: How Immune Processes Produce Depression
  6. 6Clinical Correlates and Treatment Implications
  7. 7The Convergence
  8. 8Caveats and What We Don't Know
  9. 9The Bottom Line
  10. 10Selected References and Further Reading

A high-level examination of the immune-mediated and pathogen-related routes to depression — from autoimmune encephalitis to the epidemiology of infection, and the imperative not to miss organic mimics

The Hypothesis and Why It Matters

This document examines two related but distinct immune-mediated routes to depression: autoimmunity (the immune system attacking the brain or body in ways that produce depression) and infection (pathogens and the immune response to them contributing to depression). Both overlap with the inflammatory hypothesis (the inflammation document) but are distinct enough to warrant separate treatment — where the inflammation document concerns chronic low-grade sterile inflammation, this one concerns specific autoimmune processes and infectious agents.

This matters for two quite different reasons. First, at the dramatic clinical end, autoimmune encephalitis (most famously anti-NMDA-receptor encephalitis) can present with prominent psychiatric symptoms — including depression — that are entirely organic and treatable with immunotherapy, but catastrophic if missed and mistaken for primary psychiatric illness. This makes the autoimmune route a crucial differential-diagnostic consideration, not just a research curiosity. Second, at the epidemiological end, large population studies link prior infections and autoimmune diseases to subsequently elevated depression risk, suggesting immune-mediated mechanisms contribute to a meaningful share of ordinary depression — and connecting to the maternal-immune-activation developmental model and the broader immune-psychiatry frontier.

The honest framing: autoimmune encephalitis is a rare but critical, treatable, not-to-be-missed organic cause of psychiatric presentations including depression; autoimmune diseases broadly carry elevated depression risk; the infectious epidemiology (registry studies, Toxoplasma, maternal immune activation) is real but largely associational; and most depression is not caused by a specific identifiable autoimmune process or infection — but the subset in which it is matters enormously, both clinically (treatable mimics) and conceptually (immune mechanisms in mood).

Autoimmune Encephalitis: The Dramatic, Treatable Mimic

Anti-NMDA-receptor encephalitis. The paradigm case, characterized by Josep Dalmau and colleagues: an autoimmune disorder in which antibodies against the NMDA receptor attack the brain, frequently presenting initially with prominent psychiatric symptoms — psychosis, mood disturbance (including depression), behavioral change, anxiety — often before the neurological features (seizures, movement disorders, autonomic instability, decreased consciousness) become apparent. Patients are frequently first seen by psychiatry and misdiagnosed as having a primary psychiatric disorder; the condition is treatable with immunotherapy (and tumor removal when associated with ovarian teratoma) but devastating if untreated. Susannah Cahalan's memoir Brain on Fire brought the condition to public attention. The lesson for psychiatry is profound: some apparent psychiatric illness is autoimmune brain disease, and recognizing the red flags (atypical presentation, rapid onset, neurological signs, autonomic instability, young patients, treatment resistance) can be life-saving.

Other autoimmune encephalitides and anti-neuronal antibodies. A growing family of autoimmune encephalitides (anti-LGI1, anti-GABA-B, and others) and anti-neuronal antibodies can produce psychiatric and mood symptoms — a recognized, expanding category at the neurology-psychiatry border. The discovery that antibodies against brain proteins can cause psychiatric syndromes has opened an "autoimmune psychiatry" frontier exploring whether subtler antibody-mediated processes contribute to more ordinary psychiatric illness.

Autoimmune Disease and Depression

Beyond encephalitis, systemic autoimmune diseases carry elevated depression rates:

  • Systemic lupus erythematosus, multiple sclerosis, rheumatoid arthritis, inflammatory bowel disease, and autoimmune thyroid disease all show elevated depression comorbidity, beyond what the burden of chronic illness alone explains — implicating the autoimmune/inflammatory process itself.
  • Large registry studies (notably the Danish population studies by Benros and colleagues) found that a prior autoimmune disease and prior severe infection (hospitalization) each significantly increase the subsequent risk of mood disorders, with the risk compounded when both are present — population-scale evidence that immune activation (autoimmune and infectious) contributes to depression risk.
  • Mechanisms include the inflammatory cytokines (the inflammation document), direct antibody effects, blood-brain-barrier disruption, and the shared genetic and immune substrate.

Infectious Contributors

The infection-depression link operates through several routes:

The epidemiology. Beyond the registry findings above, prior infections — particularly severe ones — are associated with elevated subsequent depression risk, consistent with infection-triggered immune activation contributing to mood pathology (overlapping with the sickness-behavior and inflammatory mechanisms).

Toxoplasma gondii. This intracellular parasite, which establishes latent brain infection and is carried by a substantial fraction of the population, has been associated in numerous studies with altered behavior and elevated rates of various psychiatric outcomes (the associations are stronger and more consistent for some outcomes than for depression specifically, and causality is debated) — a much-discussed example of a latent pathogen potentially influencing mood and behavior, though the depression-specific evidence is mixed.

Other pathogens. Various viruses (including the herpesviruses) and other infections have been explored as contributors, with the post-viral mood and fatigue syndromes (including those following severe systemic infections) illustrating how infection and the immune response to it can produce persistent depressive and fatigue symptoms — a topic of heightened interest following large-scale post-viral illness.

Maternal immune activation (the developmental route). Prenatal exposure to maternal infection/immune activation is associated, in epidemiological and strong animal evidence, with elevated offspring risk for psychiatric disorders — a developmental mechanism by which infection (acting on the developing brain via maternal immune signaling) contributes to later vulnerability, connecting the infectious and developmental models.

PANDAS/PANS. Pediatric acute-onset neuropsychiatric syndromes (including the streptococcus-associated PANDAS) propose that infection triggers autoimmune processes producing abrupt psychiatric symptoms in children — a contested but illustrative model of infection-triggered autoimmunity affecting mood and behavior.

Mechanisms: How Immune Processes Produce Depression

  • Direct antibody attack on neural targets (the autoimmune encephalitis mechanism) — antibodies against receptors and neuronal proteins disrupting function.
  • Cytokine-mediated effects — autoimmune and infectious processes generate the inflammatory cytokines that produce sickness behavior and depression (the inflammation document) via the kynurenine pathway, monoamine and dopamine effects, HPA activation, and reduced neuroplasticity.
  • Blood-brain-barrier disruption — immune activation increases barrier permeability, allowing immune access to the brain.
  • Molecular mimicry — pathogen antigens resembling neural antigens triggering cross-reactive autoimmunity (the proposed PANDAS mechanism).
  • Developmental programming — maternal immune activation altering brain development.

Clinical Correlates and Treatment Implications

Clinical correlates and red flags — the crucial clinical skill is recognizing when depression (or other psychiatric presentation) might be immune-mediated and treatable: atypical or rapid-onset presentations, prominent neurological signs (seizures, movement disorders, autonomic instability), cognitive decline out of proportion, young patients, treatment resistance, and autoimmune/infectious history should prompt consideration of organic immune causes and appropriate workup (neurological evaluation, antibody testing, imaging, CSF analysis).

Treatment implications:

  • Autoimmune encephalitis — treated with immunotherapy (steroids, IVIG, plasma exchange, immunosuppression) and tumor removal where relevant; recognizing it is the key, as it is treatable and the psychiatric symptoms resolve with the immune treatment.
  • Not missing the organic mimic — the central clinical imperative; some "psychiatric" illness is treatable brain disease.
  • Treating underlying autoimmune disease and infection addresses the source where identifiable.
  • The immune-psychiatry frontier — anti-inflammatory and immunomodulatory approaches for the inflammation-associated subset (the inflammation document) — investigational.
  • For the vast majority of depression without an identifiable autoimmune/infectious cause, standard treatment applies; this document concerns recognizing and treating the important subset where an immune process is operative.

The Convergence

The autoimmune/infectious mechanisms connect to the web primarily through the immune system:

  • Inflammation — the closest link; autoimmune and infectious processes produce depression substantially through the inflammatory cytokine mechanisms (the inflammation document), and this document concerns the specific autoimmune/infectious sources of that inflammation plus the direct antibody mechanisms.
  • Glutamatergic — anti-NMDA-receptor encephalitis directly attacks the glutamatergic system, a striking link to the glutamate model.
  • Early-life adversity/developmental — maternal immune activation is a developmental immune mechanism.
  • Neuroplasticity — immune-mediated processes impair plasticity.
  • Genetics — shared immune-genetic substrate between autoimmunity and depression.

The autoimmune/infectious model is, in effect, the specific-cause end of the inflammatory spectrum — where the inflammation document addresses chronic sterile low-grade inflammation as a dimensional contributor, this addresses the identifiable autoimmune and infectious triggers of immune-mediated depression, including the dramatic, treatable, antibody-mediated cases that must not be missed.

Caveats and What We Don't Know

  • Autoimmune encephalitis is rare — a critical not-to-be-missed cause, but a small fraction of depression; the clinical value is in recognition of the subset, not in suspecting it in everyone.
  • The infectious epidemiology is largely associational — registry and Toxoplasma findings are correlational, with confounding and uncertain causality.
  • The Toxoplasma-depression link specifically is mixed — stronger for some outcomes than depression.
  • PANDAS/PANS remains contested — a debated construct.
  • "Autoimmune psychiatry" for ordinary depression — whether subtle antibody-mediated processes contribute to common depression is an open, exciting, but unproven frontier; routine antibody testing in typical depression is not indicated.
  • Most depression is not autoimmune or infectious in any identifiable specific sense — the model addresses an important subset.

The Bottom Line

Autoimmune and infectious processes contribute to depression through routes that span a dramatic clinical extreme and a broad epidemiological signal. At the critical clinical end, autoimmune encephalitis — paradigmatically anti-NMDA-receptor encephalitis — can present with prominent psychiatric symptoms including depression, often before its neurological features, and is an organic, treatable, not-to-be-missed mimic of primary psychiatric illness: recognizing it (atypical/rapid onset, neurological signs, autonomic instability, young patients, treatment resistance) and treating it with immunotherapy can be life-saving, and the discovery that antibodies against brain proteins can cause psychiatric syndromes has opened an "autoimmune psychiatry" frontier. More broadly, systemic autoimmune diseases carry elevated depression rates, and large registry studies link prior autoimmune disease and prior severe infection to significantly increased subsequent mood-disorder risk — population-scale evidence that immune activation contributes to depression — while Toxoplasma, post-viral syndromes, maternal immune activation (the developmental route), and the contested PANDAS model illustrate the varied ways pathogens and the immune response to them can affect mood. The mechanisms — direct antibody attack, cytokine-mediated sickness behavior, blood-brain-barrier disruption, molecular mimicry, and developmental immune programming — connect this model tightly to the inflammatory hypothesis (this is, in effect, the specific-cause end of the inflammatory spectrum) and, in the case of anti-NMDA encephalitis, strikingly to the glutamatergic model. The clinical imperative is twofold: recognize and treat the important subset where an identifiable immune process is operative (especially the treatable autoimmune encephalitides), and understand that immune mechanisms contribute to a broader share of depression than the dramatic cases suggest. The caveats are real — autoimmune encephalitis is rare, the infectious epidemiology is largely associational, several specific links are contested, and most depression has no identifiable autoimmune or infectious cause — but the autoimmune/infectious model earns its place by combining a life-or-death diagnostic lesson with a window onto the immune contribution to mood that the field is only beginning to map.

Selected References and Further Reading

  1. Dalmau, J., et al. (2007). Paraneoplastic anti-N-methyl-D-aspartate receptor encephalitis associated with ovarian teratoma. Annals of Neurology, 61(1), 25–36.
  2. Dalmau, J., et al. (2008). Anti-NMDA-receptor encephalitis: Case series and analysis of the effects of antibodies. Lancet Neurology, 7(12), 1091–1098.
  3. Benros, M.E., et al. (2013). Autoimmune diseases and severe infections as risk factors for mood disorders: A nationwide study. JAMA Psychiatry, 70(8), 812–820.
  4. Benros, M.E., et al. (2011). Autoimmune diseases and severe infections as risk factors for schizophrenia. American Journal of Psychiatry, 168(12), 1303–1310.
  5. Kayser, M.S., & Dalmau, J. (2011). The emerging link between autoimmune disorders and neuropsychiatric disease. Journal of Neuropsychiatry and Clinical Neurosciences, 23(1), 90–97.
  6. Pollak, T.A., et al. (2020). Autoimmune psychosis: An international consensus on an approach to the diagnosis and management of psychosis of suspected autoimmune origin. Lancet Psychiatry, 7(1), 93–108.
  7. Najjar, S., et al. (2013). Neuroinflammation and psychiatric illness. Journal of Neuroinflammation, 10, 43.
  8. Khandaker, G.M., et al. (2015). Inflammation and immunity in schizophrenia and depression. Lancet Psychiatry, 2(3), 258–270.
  9. Sutterland, A.L., et al. (2015). Beyond the association: Toxoplasma gondii in schizophrenia, bipolar disorder, and addiction — systematic review and meta-analysis. Acta Psychiatrica Scandinavica, 132(3), 161–179.
  10. Estes, M.L., & McAllister, A.K. (2016). Maternal immune activation: Implications for neuropsychiatric disorders. Science, 353(6301), 772–777.
  11. Swedo, S.E., et al. (1998). Pediatric autoimmune neuropsychiatric disorders associated with streptococcal infections (PANDAS). American Journal of Psychiatry, 155(2), 264–271.
  12. Coughlin, J.M., et al. (2020). Reflections on neuroinflammation in psychiatry. Brain, Behavior, and Immunity.
  13. Bechter, K. (2013). Updating the mild encephalitis hypothesis of schizophrenia and affective disorders. Progress in Neuro-Psychopharmacology & Biological Psychiatry, 42, 71–91.
  14. Endres, D., et al. (2020). Immunological findings in psychotic syndromes: A tertiary care hospital's experience. Frontiers in Psychiatry / Molecular Psychiatry.
  15. Cahalan, S. (2012). Brain on Fire: My Month of Madness. Free Press.
  16. Wang, L.Y., et al. (2018). Toxoplasma gondii infection and the risk of depression: A meta-analysis. Journal of Affective Disorders.
  17. Hsu, P.C., Groer, M., & Beckie, T. (2014). New findings: Depression, suicide, and Toxoplasma gondii infection. Journal of the American Association of Nurse Practitioners.
  18. Köhler, O., et al. (2017). Infections and exposure to anti-infective agents and the risk of severe mental disorders: A nationwide study. Acta Psychiatrica Scandinavica, 135(2), 97–105.
  19. Pearlman, D.M., & Najjar, S. (2014). Meta-analysis of the association between N-methyl-D-aspartate receptor antibodies and schizophrenia, schizoaffective disorder, bipolar disorder, and major depressive disorder. Schizophrenia Research, 157(1–3), 249–258.
  20. Dantzer, R. (2018). Neuroimmune interactions: From the brain to the immune system and vice versa. Physiological Reviews, 98(1), 477–504.

This article is for education only and is not medical advice, diagnosis, or treatment. Always talk with a qualified professional about your situation.

Related articles

Causes & Mechanisms

Inflammation as a Driver of Depression

In a substantial subset of patients — perhaps a quarter to a third — depression is driven or sustained by chronic low-grade immune activation, with depressive symptoms arising partly as the brain's response to inflammatory signaling. The evidence is genuinely causal, and it points toward a biomarker-stratified psychiatry.

Causes & Mechanisms

Oxidative and Nitrosative Stress in Depression

Depression involves an imbalance between damaging reactive oxygen and nitrogen species and the body's antioxidant defenses, producing oxidative damage to an exquisitely vulnerable brain. It is largely the chemical link connecting mitochondrial dysfunction, inflammation, and excitotoxicity.

Causes & Mechanisms

Glutamatergic Dysfunction and Excitotoxicity in Depression

Dysfunction of glutamate — the brain's principal excitatory neurotransmitter and the substrate of synaptic plasticity — contributes to depression through disrupted signaling, impaired clearance, and excitotoxic damage. The discovery that ketamine works rapidly reoriented the field toward this system.

Causes & Mechanisms

Early-Life Adversity and Developmental Programming in Depression

Childhood adversity is the single most powerful environmental risk factor for adult depression, related to it in a graded, dose-dependent way. It works by biologically embedding early experience — durably reprogramming the stress, immune, and neural systems toward a vulnerable phenotype that can persist for decades.

Causes & Mechanisms

Genetics, Epigenetics, and Gene-Environment Interaction in Depression

Depression is genuinely heritable (about 35–40% for unipolar) but in a highly polygenic, no-single-gene way. The early "candidate-gene" findings largely failed to replicate; what survives is a picture of inherited vulnerability inseparably entangled with environment and regulated by epigenetics.