How Your Immune System Fights Infection
When bacteria invade your tissue, two defense systems answer in sequence. First the innate system — fast, general cells like neutrophils and macrophages — swallows invaders whole and raises an antigen flag. That flag switches on the slower, laser-precise adaptive system: helper T cells license B-cells to become factories pumping out Y-shaped antibodies, while cytotoxic T cells kill any of your own cells the microbe has hijacked. Press ☣ Inject pathogen and watch a real infection unfold on the microscope and on the live titer graph. Then flip on Vaccinated mode to see the same graph rewritten as a fast, strong secondary response.
What's happening
Pathogen load vs. antibody titer — primary vs. secondary response
The faint shapes are the textbook reference curves; the bold lines trace this infection live. A naive body runs the slow, tall primary curve; a vaccinated or previously-infected body runs the fast, low secondary curve.
The Science in Plain Language
1. The invasion. Bacteria slip out of a blood vessel into your tissue and begin to multiply — one becomes two, two become four. Many pathogens double roughly every 20–40 minutes, so an unchecked infection can climb from a few hundred to tens of millions of organisms per millilitre within a day. Your body has to answer fast.
2. Innate immunity: the first responders. Neutrophils (the most abundant white blood cell) and macrophages patrol every tissue. They are the innate system — fast, always on duty, and general-purpose: they attack anything that looks foreign without needing to know exactly what it is. A macrophage (“big eater”) chases a bacterium and swallows it whole; this engulf-and-digest process is called phagocytosis. Innate cells buy time, but on their own they usually cannot finish a real infection — which is why, on the graph, the pathogen keeps climbing for the first few days.
3. Antigens: the wanted poster. After digesting a microbe, the macrophage keeps a small fragment — an antigen — and displays it on its surface on a molecule called MHC, like pinning up a wanted poster. This is antigen presentation, the hand-off from the fast innate system to the slower, sharper adaptive system.
4. Helper T cells: the coordinators. A helper T cell (CD4) whose receptor matches the displayed antigen becomes activated and starts issuing orders — releasing signalling molecules (cytokines) that license B-cells and rev up the whole response. Without this “permission” step, B-cells stay quiet. (This is the cell HIV destroys, which is why untreated HIV cripples immunity.)
5. Adaptive immunity: antibodies to order. A licensed B-cell multiplies and matures into a plasma cell — a factory that mass-produces antibodies, the Y-shaped proteins shaped to grip that one specific microbe. Antibodies swarm out and lock onto the matching bacteria. This tags the invaders (a process called opsonization), neutralizes them, and flags them for destruction — so they are cleared far faster than by innate cells alone. On the graph, this is the moment the red pathogen line finally turns downward while the gold antibody line climbs.
6. Cytotoxic T cells: killing the hijacked. Some microbes hide inside your own cells, where antibodies can't reach. Cytotoxic T cells (CD8) inspect the fragments every cell displays; when one shows a foreign antigen, the killer T cell delivers a lethal package that triggers the infected cell to self-destruct (apoptosis), removing the microbe's hiding place. This is the cell-mediated arm of adaptive immunity.
7. Memory cells: primary vs. secondary response. Once the infection is beaten, most fighters die off, but a few long-lived memory B and T cells persist for years. The first time you meet a microbe — the primary response — antibodies take about 5–7 days to appear, so the pathogen climbs high before it is controlled. If that microbe ever returns, memory cells launch a secondary response within hours: antibodies rise faster, climb higher, and the pathogen is crushed before it can gain a foothold. That is the difference between the tall primary curve and the short secondary curve on the graph — and it is exactly immunity.
8. Vaccines take the shortcut. A vaccine shows your immune system a harmless piece or weakened version of a pathogen, so you build the memory cells without ever getting sick. When the real microbe shows up, your adaptive system is already trained — it runs the fast secondary curve from the very first day. Flip on Vaccinated mode above to see that graph rewrite itself.