T cells fight infection by identifying cells that have been compromised by viruses, bacteria, or other pathogens and either killing those cells directly or coordinating a broader immune attack. They do this through a tightly orchestrated system: some T cells destroy infected cells on contact, others rally the rest of the immune system into action, and still others keep the whole response from spiraling out of control. Each type plays a distinct role, and their coordinated effort is what clears most infections from your body.
How T Cells Recognize Infected Cells
Before a T cell can fight anything, it needs to identify the threat. Your cells constantly display small fragments of the proteins inside them on their outer surface, bound to molecules called MHC (major histocompatibility complex). Think of MHC as a display shelf: healthy cells show fragments of normal proteins, while infected cells show fragments of viral or bacterial proteins. T cells scan these displays using a surface receptor that fits the MHC-peptide combination like a lock and key, positioned at an angle across the display surface.
There are two classes of MHC molecules, and they determine which type of T cell responds. Class I MHC appears on nearly every cell in your body and presents fragments of proteins made inside the cell, such as viral proteins during an infection. Killer T cells (CD8+) read class I displays. Class II MHC appears mainly on specialized immune cells like dendritic cells and B cells, which scoop up pathogens from outside, break them down, and present the fragments. Helper T cells (CD4+) read class II displays. This division of labor means killer T cells patrol for cells that are already infected internally, while helper T cells respond to threats flagged by the immune system’s scouts.
The Timeline of a T Cell Response
When you encounter a new pathogen, the T cell response doesn’t happen instantly. In a lung infection like influenza, dendritic cells in the airways grab pieces of the virus and migrate to nearby lymph nodes within the first two days. There, they present viral fragments to T cells. When a T cell’s receptor matches the antigen, signaling events begin within seconds, but the full activation process takes about 24 hours. During that time, the T cell increases dramatically in size, ramps up its RNA production roughly 30-fold, and switches on around 1,300 genes.
After that initial 24-hour priming window, the T cell begins dividing rapidly. CD8+ killer T cells can divide about 15 times during a strong viral response, while CD4+ helper T cells typically divide 4 to 10 times. The response peaks around day 7 of infection, at which point large numbers of armed T cells leave the lymph nodes and flood into infected tissue. This is why the first week of a new infection often feels the worst: your immune system is still building its army.
Killer T Cells Destroy Infected Cells
CD8+ killer T cells are the immune system’s assassins. When one locks onto an infected cell, it delivers a lethal hit through a precise two-part weapon system. First, it releases a protein called perforin, which assembles into ring-shaped pores in the target cell’s membrane. These pores act as entry points for a second set of proteins called granzymes, which are enzymes that function like molecular scissors.
Once inside, granzymes trigger a self-destruct program called apoptosis. Granzyme B, the most important of these enzymes, activates a chain reaction that ultimately switches on an enzyme that shreds the cell’s DNA. The infected cell dismantles itself from the inside out, destroying the pathogen’s factory in the process. The debris is then cleaned up by other immune cells. Killer T cells also carry a backup killing method: a surface molecule that can bind to a receptor on the target cell and directly trigger the same self-destruct pathway without needing to punch holes in the membrane.
One killer T cell can destroy multiple targets in sequence. After delivering its payload to one cell, it detaches and moves on to the next, making each one a highly efficient pathogen eliminator.
Helper T Cells Coordinate the Attack
CD4+ helper T cells don’t kill infected cells themselves. Instead, they act as the immune system’s commanders, releasing chemical signals called cytokines that activate and direct other immune cells. Helper T cells come in distinct subtypes that specialize in different kinds of threats.
Th1 cells target pathogens hiding inside other immune cells, like tuberculosis bacteria that survive inside macrophages. They release signaling molecules that supercharge macrophages, essentially flipping a switch that allows the macrophage to digest the microbes trapped in its internal compartments. This activation requires two simultaneous signals from the Th1 cell: a secreted molecule that binds to the macrophage surface and a direct cell-to-cell contact signal. Th1 cells can also stimulate B cells to produce antibodies that coat pathogens and flag them for destruction.
Th2 cells handle threats from larger extracellular parasites and allergens. They release a different cocktail of signaling molecules that push B cells to produce antibodies, including the type involved in allergic reactions. These antibodies bind to mast cells and other immune cells positioned in tissues, arming them to respond immediately if the pathogen appears again. This division between Th1 and Th2 responses allows the immune system to tailor its strategy to the type of infection it faces.
Regulatory T Cells Prevent Friendly Fire
An immune response powerful enough to clear an infection is also powerful enough to damage healthy tissue. Regulatory T cells (Tregs) act as the brakes on the system. They suppress the activity of other immune cells through multiple mechanisms, preventing the kind of overreaction that leads to autoimmune disease or excessive inflammation.
Tregs work partly by competing with other T cells for activation signals. They carry a surface molecule that binds to the same targets as the “go” signal on regular T cells, but instead of activating anything, it removes those signals from the surface of antigen-presenting cells. This starves nearby T cells of the stimulation they need to keep fighting. Tregs also directly suppress the production of inflammatory molecules in other T cells by repressing the genes responsible for making them. A master control protein inside Tregs binds to roughly 700 gene promoters, silencing inflammatory programs and keeping the cell locked in its suppressive role.
How T Cells Are Trained Before They Fight
T cells are produced from stem cells in your bone marrow but mature in the thymus, a small organ behind your breastbone. There, they undergo a rigorous two-stage screening process. In the first stage, called positive selection, developing T cells must prove they can recognize MHC molecules. Those that can’t are eliminated. In the second stage, negative selection, T cells that react too strongly to normal body proteins are also destroyed. This prevents them from later attacking your own tissues.
Only T cells that pass both tests, able to recognize MHC but not triggered by self-proteins, graduate into the bloodstream. The thymus begins shrinking as early as one year of age, declining at roughly 3% per year until middle age and less than 1% per year after that. This means your body produces fewer new T cells as you get older, which is one reason immune responses weaken with age. A healthy adult typically maintains 500 to 1,200 CD4+ helper T cells and 150 to 1,000 CD8+ killer T cells per cubic millimeter of blood.
Memory T Cells and Long-Term Protection
After an infection is cleared, most of the T cells involved die off. But a fraction survive as memory T cells, which can persist for years or even decades. These cells are the basis of long-term immunity: if the same pathogen returns, memory T cells recognize it immediately and mount a faster, stronger response than the first time around.
Memory T cells come in several specialized forms. Central memory T cells circulate between the blood and lymph nodes, acting as a long-lived reserve force. They persist far longer in the body than other memory types. In experiments, central memory T cells were found circulating at 19 times the numbers of effector memory T cells three weeks after introduction, and they can replenish other memory T cell populations. Effector memory T cells, by contrast, are stationed in peripheral tissues and convert most efficiently into tissue-resident cells, though they don’t last as long in circulation.
Tissue-resident memory T cells are perhaps the most strategically important. They embed themselves in barrier tissues like skin, lungs, and the gut lining, where pathogens are most likely to enter. They don’t recirculate through the bloodstream. Instead, they stay put and provide front-line protection, capable of launching an immediate response at the exact site of reinfection.
When T Cells Wear Out
In chronic infections where the pathogen is never fully cleared, such as certain viral infections, T cells can enter a state called exhaustion. Exhausted T cells lose their ability to kill effectively and produce fewer inflammatory signals. This happens because persistent exposure to the pathogen drives continuous, intense receptor signaling that reprograms the cells. Exhausted T cells ramp up surface molecules that act as “off switches,” dampening their own activity.
Exhaustion isn’t purely a failure, though. It appears to be a controlled tradeoff. While exhausted T cells can’t eliminate the pathogen entirely, they still provide some level of control, and their reduced activity causes far less collateral damage to organs than a full-blown immune assault would. Recent research has shown that the precursors of exhausted T cells begin forming surprisingly early, within just days of initial infection, particularly in T cells receiving the strongest receptor signals. This suggests the immune system hedges its bets from the start, preparing both aggressive effector cells and more restrained cells suited for a long-term standoff.

