The Immune System, From Scratch
TL;DR. Your immune system is two systems bolted together. The innate half is fast, dumb, and identical in everyone: it recognises broad patterns that mean "not human," attacks within minutes, and produces the swelling, redness, and fever you actually feel. The adaptive half is slow, specific, and unique to your life history: it takes days to build a response against one exact molecular shape, and then remembers that shape for decades. Nearly everything in this book touches this machinery. Infections are the immune system winning or losing. Vaccines are the memory half, trained without the disease. Allergy is the system attacking something harmless. Autoimmunity is it attacking you. Cancer partly succeeds by hiding from it, and modern immunotherapy works by removing the hiding place.
Key takeaways
- Symptoms of infection are mostly the immune response, not the pathogen. Fever, aches, swelling, and mucus are your side of the fight.
- Innate immunity responds in minutes to generic "not-self" patterns. Adaptive immunity takes 7 to 14 days on first exposure and hours to days on every exposure afterwards, which is the entire point of vaccination.
- Antibodies are made by B cells and work outside cells (blocking and tagging). Killer T cells work on infected cells from the inside out. A virus already inside a cell can only be cleared by the second mechanism.
- Immunological memory is why you get chickenpox once and colds forever: memory is specific to a molecular shape, and some viruses change shape constantly.
- The system's central problem is tolerance, learning not to attack you. Failures of tolerance produce type 1 diabetes, rheumatoid arthritis, lupus, and multiple sclerosis.
- Chronic low-grade inflammation, unlike the acute kind, causes damage without fighting anything. It links obesity to diabetes, heart disease, and some cancers.
Layer 0: the walls
In short: Skin, mucus, stomach acid, and resident bacteria do most of the defending, which is why a catheter or a burn is more dangerous than an exposure.
Before any immune cell is involved, you are defended by barriers, and they do most of the work.
Skin is a dry, acidic, constantly shedding surface with a dead outer layer that few organisms can cross intact. Your airways are lined with cells whose beating hairs (cilia) push a sheet of mucus upward at roughly 1 cm per minute, carrying trapped particles to the throat to be swallowed. Stomach acid sits near pH 1.5 to 3.5 and sterilises most of what you swallow. Tears and saliva contain lysozyme, an enzyme that dissolves bacterial cell walls. Urine flow flushes the urinary tract. And your gut, skin, and mouth are already occupied by trillions of resident bacteria (the microbiome) that compete for space and nutrients with anything new.
This is why breaking a barrier is so much more dangerous than being exposed to germs: a surgical wound, a burn, a ventilator tube, a urinary catheter, or an intravenous line is a hole in the wall. It is also why smoking matters so much for pneumonia. Cigarette smoke paralyses the cilia, and the escalator stops.
Layer 1: innate immunity, the fast dumb response
In short: Within minutes, generic not-human patterns trigger the fever, swelling, and pus that you actually feel during an infection.
If something crosses a barrier, resident cells detect it within minutes. They do not recognise the specific organism. They recognise patterns that no human cell has: the LPS molecule in gram-negative bacterial membranes, the flagellin of bacterial tails, double-stranded RNA (which human cells make only when a virus is copying itself), unmethylated bacterial DNA. Sensor proteins called toll-like receptors detect these patterns and trigger an alarm.
The alarm does four things.
It calls in cells. Neutrophils, the most common white blood cell, arrive within an hour and eat bacteria (phagocytosis), then die in place. Pus is mostly dead neutrophils. Macrophages ("big eaters") are longer-lived, eat debris, and coordinate what happens next.
It opens the blood vessels. Local vessels dilate and become leaky so that cells and fluid can get into tissue. This is exactly the classic four signs of inflammation, described by Celsus in the first century: redness and heat (more blood flow), swelling (leaked fluid), and pain (chemicals like bradykinin and prostaglandins irritating nerve endings). Everything that makes an infected cut look infected is your own response.
It runs the complement cascade. Complement is a set of about 30 blood proteins that activate each other in sequence. The end products punch holes in bacterial membranes, coat bacteria so phagocytes grab them more easily, and shout for more cells. It is ancient, always on standby, and works with no prior exposure.
It raises the thermostat. Signalling molecules called cytokines, especially interleukin-1 and interleukin-6 and TNF-alpha, travel to the hypothalamus in the brain and raise the body's temperature set point. You then feel cold and shiver, because your actual temperature is now below the new target. Fever mildly impairs many pathogens and speeds immune cells up. This is also why fever-reducing drugs work: they block the enzyme that makes the prostaglandin that resets the thermostat.
Don't be confused: inflammation is not infection. Inflammation is the response; infection is one of many things that can trigger it. A sprained ankle, a splinter, a sunburn, an autoimmune attack, and a cholesterol plaque in an artery all inflame with no microbe involved. When a doctor says a disease is "inflammatory," they mean this machinery is running, not that you have germs.
Layer 2: adaptive immunity, the slow specific response
In short: The body pre-builds around a billion random receptors and then amplifies whichever one happens to fit, which takes a week the first time and hours ever after.
Innate immunity buys time. If it cannot finish the job in a few days, the adaptive system takes over. It has two arms and one trick.
The trick is enormous prebuilt diversity. During development, each B and T cell randomly shuffles and splices gene segments to build one unique receptor. The result is a repertoire of something on the order of a hundred million to a billion different receptor shapes, generated before your body has met any of them. Nothing is designed in response to a pathogen; the matching receptor almost certainly already exists, sitting in a lymph node, waiting.
When a pathogen arrives, the few cells whose receptors happen to fit it are activated and told to divide, repeatedly. This is clonal selection: the immune system does not invent an answer, it amplifies the cell that already had it. That amplification takes about a week, which is why a genuinely new infection makes you sick for a week.
Arm 1: B cells and antibodies. An activated B cell becomes a plasma cell, a factory that pumps out thousands of antibodies per second. An antibody is a Y-shaped protein whose two arm tips grip one specific molecular shape (an antigen). Antibodies work outside cells, in blood and on wet surfaces, and they do three jobs: neutralise (physically block a virus from docking onto a cell), opsonise (coat a microbe so phagocytes grab it), and activate complement.
Arm 2: T cells. T cells only respond to fragments displayed on the surface of your own cells, on molecules called MHC. Every cell in your body constantly chops up a sample of its interior proteins and displays the pieces on its surface, effectively publishing a manifest of what is inside it.
- Cytotoxic T cells (CD8) patrol those manifests. If a cell is displaying viral protein, the T cell orders it to self-destruct. This is the only way to clear a virus that is already inside cells.
- Helper T cells (CD4) are the coordinators. They license B cells to make high-quality antibodies, activate macrophages to kill what they have eaten, and direct the whole response. HIV kills CD4 cells specifically, which is why Chapter 30 is a chapter about the collapse of everything else.
Memory. After the fight, most of the expanded clones die, but some persist as memory cells for years to decades. On re-exposure, the response is faster (hours to days) and larger, often clearing the pathogen before you notice symptoms. That is immunity. That is also the entire mechanism of vaccination: present the shape without the disease, get the memory anyway.
| Innate | Adaptive | |
|---|---|---|
| Speed | Minutes to hours | 7 to 14 days first time, hours to days later |
| Specificity | Broad patterns | One exact molecular shape |
| Memory | None (mostly) | Years to lifetime |
| Same in everyone? | Yes | No, shaped by your exposures |
| Main cells | Neutrophils, macrophages, NK cells | B cells, T cells |
| You feel it as | Fever, swelling, aches, pus | Recovery, and lasting immunity |
Why some diseases come back forever
Memory is specific to shape. Pathogens that change shape defeat it.
Influenza mutates its surface proteins continuously (antigenic drift) and occasionally swaps whole gene segments with animal flu viruses (antigenic shift), which is why the vaccine is reformulated yearly and why pandemics happen. The common cold is caused by over 160 rhinovirus types plus other virus families, so you can be immune to dozens and still catch one. HIV mutates within a single patient faster than antibodies can track. Malaria parasites systematically vary their surface proteins, which is why people in high-transmission areas gain partial immunity over years and never full immunity.
Compare measles, which is antigenically stable: catching it once, or being vaccinated, protects for life. That stability is why measles is eliminable and flu is not.
The three ways the system fails
In short: Too little is immunodeficiency, too much aimed outward is allergy, and too much aimed inward is autoimmunity.
Too little: immunodeficiency. Missing or broken components. Inherited forms are rare. Acquired forms are common and matter enormously: HIV destroying CD4 cells, chemotherapy wiping out neutrophils, steroids and biologic drugs suppressing inflammation on purpose, poorly controlled diabetes impairing neutrophil function, old age (immunosenescence), and malnutrition, which remains the world's most common cause of immune deficiency.
Too much, aimed outward: allergy. The system builds an IgE antibody response against something harmless (pollen, peanut protein, cat dander). On re-exposure, IgE on mast cells triggers a massive histamine release: swelling, itching, mucus, constricted airways, and in the extreme, anaphylaxis. See Chapter 46.
Too much, aimed inward: autoimmunity. During development, T and B cells that strongly recognise your own tissue are deleted or suppressed. This is tolerance, and it is imperfect. When it fails, the same machinery that clears bacteria dismantles your joints (rheumatoid arthritis), your insulin-producing cells (type 1 diabetes), your nerve insulation (multiple sclerosis), or many organs at once (lupus). Autoimmunity is strikingly sex-skewed: roughly 4 out of 5 people with an autoimmune disease are women, for reasons involving X-chromosome gene dosage and sex hormones that are still being worked out.
The slow burn: chronic inflammation
In short: The same machinery running quietly for years with nothing to kill is what links obesity to diabetes, heart disease, and several cancers.
Acute inflammation is a controlled emergency that resolves. Chronic inflammation is the same machinery running at low intensity for years with nothing to kill, and it is one of the connective threads of modern chronic disease.
Fat tissue, especially visceral fat around the organs, is not inert storage. It secretes inflammatory cytokines. Those cytokines interfere with insulin signalling (a direct link from obesity to type 2 diabetes), promote the immune activity inside artery walls that builds atherosclerotic plaque, and create a tissue environment that favours some cancers. Chronic infections (hepatitis B and C, H. pylori, HPV) cause cancer through the same route: decades of inflammation and cell turnover in one tissue. Even in the absence of disease, inflammatory markers drift upward with age, a phenomenon labelled inflammaging.
This is why a blood test for C-reactive protein, a nonspecific inflammation marker, predicts cardiovascular events, and why anti-inflammatory approaches keep appearing in chapters that seem to have nothing to do with infection.
Sources and notes
Standard immunology, drawn from Janeway's Immunobiology and Abbas, Cellular and Molecular Immunology. The four cardinal signs of inflammation are from Celsus, De Medicina, first century CE. Receptor diversity estimates vary by method and are given as an order of magnitude. Toll-like receptor discovery: Hoffmann, Beutler, and Steinman's work on innate immunity and dendritic cells received the 2011 Nobel Prize. The female predominance in autoimmune disease is a robust epidemiological finding across many conditions; the roughly 4-to-1 figure is an aggregate and varies widely by specific disease (about 9-to-1 in lupus, closer to 1-to-1 in type 1 diabetes). Rhinovirus type counts are from serotype and genotype surveys.
Open questions. Why tolerance fails in any individual is not known for any autoimmune disease. The role of the microbiome in shaping immune development is real but frequently overstated in popular coverage, and most causal claims about it in humans are not yet settled.
Next: what a pathogen has to accomplish to get from one person into another, and why that determines almost everything about how a disease behaves. 👉