Autoimmune diseases happen when the immune system mistakenly attacks the body’s own tissues, and there is no single cause. Instead, these conditions develop from a combination of genetic susceptibility, environmental triggers, hormonal factors, and changes in gut health that together push the immune system past a tipping point. Somewhere between 80 and 150 autoimmune diseases have been identified, affecting roughly 8% to 10% of the world’s population.
Understanding why the immune system turns on itself requires looking at several interlocking factors. For most people who develop an autoimmune condition, it takes a genetic predisposition plus one or more outside triggers to set the process in motion.
Genetic Susceptibility Sets the Stage
Your genes don’t cause autoimmune disease on their own, but they heavily influence your risk. The most important genetic players are a group of immune-related genes called HLA genes, which help your immune cells distinguish your own tissues from foreign invaders. Specific variations in these genes are linked to nearly every major autoimmune condition. In rheumatoid arthritis, for example, susceptibility genes within this region account for about 12.7% of the overall variation in who gets the disease, with non-HLA genes contributing another 4% or so.
The patterns differ by condition and by ethnic background. Certain HLA variations double the risk of lupus in American and European populations. Different variations are strongly tied to multiple sclerosis, with one variant raising the odds by roughly 2.4 times. In celiac disease, 30% to 35% of people in affected populations carry the relevant gene variants, yet only 2% to 5% of those carriers ever develop the disease. That gap highlights the central reality of autoimmune genetics: carrying risk genes makes you vulnerable, but something else has to pull the trigger.
Infections That Confuse the Immune System
One of the best-understood triggers is a process called molecular mimicry. When you fight off an infection, your immune system learns to recognize specific proteins on the surface of the invading bacteria or virus. Sometimes those proteins look strikingly similar to proteins on your own cells. After the infection clears, immune cells trained to attack the invader may keep firing, this time hitting your own tissues.
The classic example is rheumatic fever. After a strep throat infection, antibodies made to fight the bacteria’s surface proteins can cross-react with proteins in the heart muscle, causing lasting cardiac damage. A similar mechanism is at work in Guillain-Barré syndrome, where infection with the food-poisoning bacterium Campylobacter jejuni can trigger antibodies that attack the protective coating of peripheral nerves. Coxsackievirus infections have been linked to type 1 diabetes through cross-reactivity with proteins on insulin-producing cells in the pancreas.
Epstein-Barr virus (EBV), which infects roughly 95% of adults worldwide, has emerged as a particularly important suspect. Research published in Science Translational Medicine found that in lupus patients, EBV infects and reprograms a specific type of immune cell, turning it into an activated cell that drives autoimmune responses against the body’s own nuclear proteins. EBV reactivation has also been associated with the transition from preclinical to active lupus and with disease flares. The virus has similarly been identified as a candidate driver of multiple sclerosis.
Why Women Are Affected Far More Often
Women account for the majority of autoimmune disease cases, and for conditions like lupus and Sjögren’s syndrome, the ratio can be as high as 9 to 1. For decades, researchers assumed sex hormones like estrogen were the primary explanation, since estrogen can amplify certain immune responses. But newer evidence points to something more fundamental: the X chromosome itself.
Women carry two X chromosomes, while men carry one. During early development, one X chromosome in each female cell is supposed to be shut down to balance gene activity between the sexes. This shutdown isn’t perfect. Some genes, including genes involved in immune signaling, escape silencing and remain active on both copies. One key example is a gene that produces an immune sensor called TLR7, which detects viral material. When both copies are active, immune cells can become more reactive than they should be. Research in both humans and mice has found that the number of X chromosomes, more than the level of sex hormones, is associated with higher susceptibility to autoimmune conditions like lupus, Sjögren’s syndrome, and scleroderma.
Gut Barrier Breakdown and Immune Activation
The lining of your intestine is a single layer of cells held together by proteins that act like locks between them, forming a tight seal. This barrier is supposed to let nutrients through while keeping bacteria, toxins, and undigested food proteins out of the bloodstream. A protein called zonulin acts as the master regulator of these locks, opening and closing them as needed.
When this system breaks down, the barrier becomes “leaky.” Bacteria, large food proteins, and other molecules slip through into the bloodstream, where they encounter immune cells. The result is widespread inflammation and immune activation that can extend far beyond the gut. Research has found that this intestinal permeability is associated with autoimmune responses targeting a diverse list of tissues throughout the body. In people who are already genetically susceptible, a leaky gut may be the environmental push that tips the immune system toward attacking self.
What damages the gut barrier in the first place? Chronic stress, alcohol, certain medications, poor diet, and infections can all contribute. The composition of gut bacteria also matters, and shifts in the microbiome appear to play a role in conditions ranging from inflammatory bowel disease to type 1 diabetes.
Reduced Microbial Exposure in Modern Life
Autoimmune diseases are rising fastest in industrialized countries and in developing countries that are rapidly adopting Western lifestyles. The “hygiene hypothesis” offers one explanation: growing up in cleaner environments with fewer infections means the immune system gets less training in its early, formative years.
In a well-trained immune system, specialized cells called regulatory T cells act as brakes, preventing immune responses from going too far. Early exposure to a wide range of microbes helps these regulatory cells develop and mature. Without that exposure, the brakes are weaker. Animal studies have shown that stimulating certain microbial sensors on immune cells can actually prevent the onset of autoimmune diabetes in mice that are genetically prone to the disease. In humans, newborns whose mothers were exposed to farm environments during pregnancy show higher levels of regulatory T cells in their cord blood.
Changes in the gut microbiome driven by modern diets, antibiotic use, and urban living likely contribute to this effect. The connection is especially well studied in inflammatory bowel diseases, where shifts in gut bacteria appear to directly influence the balance between inflammatory and regulatory immune responses.
Epigenetic Changes That Alter Gene Behavior
Your DNA sequence doesn’t change during your lifetime, but the way your genes are read and expressed can shift dramatically. Chemical tags attached to DNA, particularly a process called methylation, act like dimmer switches that turn genes up or down. In autoimmune diseases, these switches are frequently set incorrectly.
A large-scale study comparing immune cells from patients with rheumatoid arthritis, lupus, scleroderma, and Graves’ disease to healthy controls found over 15,000 sites where methylation patterns differed in a key type of immune cell. The most striking changes clustered around genes in the interferon pathway, a branch of the immune system involved in fighting viruses. In autoimmune patients, these genes tended to be under-methylated, meaning their dimmer switches were turned up, producing an overactive immune response. This pattern of interferon gene over-activation was shared across multiple different autoimmune conditions, suggesting a common thread in how the immune system goes wrong.
What drives these epigenetic shifts? Environmental exposures, including infections, toxins, diet, and stress, can all alter methylation patterns over time. This is one reason autoimmune diseases can appear to “turn on” after a major life event, illness, or environmental change, even in someone who carried genetic risk factors for years without symptoms.
Vitamin D and Immune Regulation
Vitamin D does more than build bones. It plays a direct role in training the immune system to tolerate the body’s own tissues. Vitamin D helps generate regulatory T cells, the same braking cells that keep immune responses in check. It does this by promoting the production of a key protein that these cells need to develop and function. Regulatory T cells stimulated by vitamin D release anti-inflammatory signals and can actively suppress the autoimmune responses that damage tissues.
In clinical studies, people who supplemented with vitamin D showed a significant correlation between rising blood levels and increasing percentages of regulatory T cells over a 12-week period. Vitamin D deficiency, defined as blood levels below 50 nmol/L, is common worldwide and is consistently associated with higher rates of autoimmune disease. Geographic patterns reinforce this: autoimmune conditions like multiple sclerosis are more common at higher latitudes, where sun exposure and vitamin D production are lower.
How These Factors Work Together
No single cause explains autoimmune disease. The current model looks something like this: you inherit a set of genes that make your immune system more likely to mistake self for threat. Environmental factors, including infections, gut barrier damage, low vitamin D, reduced microbial exposure, or toxins, then alter how those genes are expressed through epigenetic changes. At some point, a triggering event like a viral infection or period of intense stress tips the balance. The immune system begins attacking a specific tissue, and if the process isn’t contained by regulatory T cells, chronic autoimmune disease develops.
This layered model explains why autoimmune diseases often cluster in families without following simple inheritance patterns, why identical twins don’t always share the same diagnosis, and why the same genetic background can produce different autoimmune conditions in different people depending on their environmental exposures. It also explains why these diseases are becoming more common globally: not because human genetics have changed, but because the environmental inputs shaping our immune systems have shifted dramatically in a few generations.

