The Immune System
A layered defence that tells "you" from "not-you". How innate and adaptive immunity work together to protect the body every day.
Try a tool
What Is the Immune System?
The immune system is the body's layered defence network — a remarkable collection of cells, tissues, proteins and organs that work together to protect you from infection, destroy abnormal cells and repair tissue damage.
Its fundamental challenge is distinguishing "self" from "non-self": recognising the body's own healthy cells as friendly, while identifying and destroying bacteria, viruses, fungi, parasites, cancer cells and other threats.
Unlike the heart or lungs, the immune system is not a single organ. It is distributed throughout the body — in the blood, lymph nodes, bone marrow, spleen, tonsils, thymus and the lining of the gut. This dispersed design means defences are everywhere, ready to respond wherever a threat appears.
The Two Main Branches of Immunity
Immunologists divide the immune system into two broad branches, which work in close coordination:
- Innate immunity — the body's rapid, general-purpose first response. It reacts within minutes to hours and does not require prior exposure to a pathogen.
- Adaptive immunity — a slower but highly specialised response that targets specific pathogens. It can take days to a week or more to fully activate, but it learns and remembers.
A third concept — passive immunity — refers to temporary protection acquired from outside the body, such as the antibodies transferred from a mother to her baby during pregnancy and through breastfeeding.
Innate Immunity: The First Line of Defence
Innate immunity is ancient in evolutionary terms and shared across many species. Its first defenders are physical and chemical barriers that prevent pathogens from entering the body in the first place.
Physical and Chemical Barriers
Skin is the body's primary physical barrier — a tough, nearly waterproof shield covering the body's surface. Intact skin is very difficult for most pathogens to penetrate. Where the body has openings — the mouth, nose, eyes, genitals and gut — other defences take over.
Mucous membranes line the respiratory, digestive and urogenital tracts. They secrete mucus, a sticky gel that traps pathogens and particles. In the airways, tiny hair-like projections called cilia beat rhythmically to sweep the mucus (and its trapped contents) upward and out of the lungs.
Other chemical barriers include tears and saliva, which contain lysozyme — an enzyme that breaks open bacterial cell walls. Stomach acid destroys most pathogens that are swallowed. Urine flow flushes microbes from the urinary tract.
Cellular Innate Defenders
When pathogens breach the physical barriers, innate immune cells respond rapidly. These cells carry pattern-recognition receptors that detect broad molecular signatures shared by many different pathogens — patterns that the body's own cells do not carry.
Neutrophils are the most abundant white blood cells and the first to arrive at a site of infection. They engulf and destroy pathogens through a process called phagocytosis and release toxic chemicals that kill nearby microbes. Neutrophils live only a few days but are produced in enormous numbers.
Macrophages are long-lived, versatile cells present in almost every tissue. They engulf pathogens and dead cells, release chemical alarm signals called cytokines, and present fragments of destroyed pathogens to adaptive immune cells — serving as a vital bridge between the two branches.
Natural killer (NK) cells specialise in detecting and destroying virus-infected cells and cancer cells before the adaptive immune system is fully engaged. They identify cells that have lost normal surface markers and trigger them to self-destruct through a process called apoptosis.
Dendritic cells are found throughout tissues and are expert antigen-presenting cells. They capture pathogens, migrate to lymph nodes and display pathogen fragments on their surface to activate adaptive immune cells.
Inflammation: The Alarm Response
When tissue is damaged or infection is detected, the innate immune system triggers inflammation. This is not a malfunction — it is a carefully controlled response designed to contain the threat, recruit more immune cells and begin repair.
The classic signs of inflammation — redness, heat, swelling and pain — all have functional explanations. Redness and heat result from blood vessels in the affected area widening (vasodilation), increasing blood flow and bringing more immune cells to the site. Swelling (oedema) occurs because blood vessels also become more leaky, allowing fluid and proteins to pour into the tissue. Pain results from chemical signals stimulating nearby pain receptors — a signal that something needs attention.
Cytokines released during inflammation also cause the liver to produce proteins that assist in fighting infection, and they signal the brain to raise body temperature, producing a fever. A moderate fever can actually slow the growth of some pathogens and speed up immune cell activity.
| Cell type | Where found | Main job |
|---|---|---|
| Neutrophil | Blood, infection sites | Engulf and destroy pathogens; first responder |
| Macrophage | Most tissues | Engulf debris and pathogens; present antigens; release cytokines |
| Dendritic cell | Skin, gut lining, airways | Capture antigens; activate T cells in lymph nodes |
| Natural killer cell | Blood, tissues | Destroy infected and cancerous cells |
| Mast cell | Skin, airways, gut | Release histamine and other chemicals in response to injury or allergens |
| Eosinophil | Blood, tissues | Combat parasites; involved in allergic responses |
Adaptive Immunity: Targeted Defence
While the innate system responds rapidly but broadly, the adaptive immune system builds a highly specific response to each individual pathogen. It takes longer — typically several days to a week — but it is far more powerful against the specific threat, and crucially, it learns from experience.
Adaptive immunity relies on two main types of lymphocytes (a class of white blood cell): T cells and B cells. Both are produced in the bone marrow from the same type of stem cell, but they mature in different locations and have distinct jobs.
T Cells: The Commanders and Killers
T cells mature in the thymus — a small gland in the chest that is most active during childhood. Each T cell has a unique receptor that can recognise one specific fragment of a pathogen, called an antigen.
When a dendritic cell presents a matching antigen to a T cell in a lymph node, that T cell rapidly multiplies into a large clone of identical cells. These clones differentiate into different types:
- Helper T cells (CD4+) act as coordinators, releasing cytokines that activate other immune cells, instruct B cells to produce antibodies and sustain the overall immune response.
- Cytotoxic T cells (CD8+) directly kill cells that are infected with viruses or that have become cancerous, by releasing toxic proteins.
- Regulatory T cells (Tregs) dampen the immune response once a threat has been eliminated, preventing the immune system from attacking the body's own healthy cells.
- Memory T cells persist long after the infection is cleared, enabling a far faster response if the same pathogen is encountered again.
B Cells and Antibodies
B cells are produced and mature in the bone marrow. Like T cells, each B cell has receptors specific to one antigen. When a B cell encounters its matching antigen — especially when boosted by helper T cells — it differentiates into a plasma cell that churns out large quantities of antibodies.
Antibodies (also called immunoglobulins) are Y-shaped proteins that bind tightly to antigens. They neutralise pathogens by blocking their ability to enter cells, mark them for destruction by other immune cells (a process called opsonisation), or activate the complement system — a cascade of proteins that directly destroys pathogens.
There are five main classes of antibody — IgG, IgM, IgA, IgD and IgE — each suited to different tasks and locations. IgA, for example, is abundant in saliva, tears and breast milk, guarding mucous membrane entry points.
Immunological Memory: How Immunity Lasts
One of the most powerful features of adaptive immunity is its ability to remember. After an infection or vaccination, a small population of memory B cells and memory T cells remains in the body for years or even decades.
If the same pathogen is encountered again, these memory cells respond much faster — typically within hours rather than days — and in greater numbers. The response is also stronger, often clearing the infection before any symptoms appear. This is the biological basis of acquired immunity and the principle underlying all vaccines.
Vaccines work by exposing the immune system to a safe version of a pathogen (or a key part of one), allowing the body to build memory without experiencing the actual disease. This is mainstream, well-established science — one of the most effective public health tools ever developed.
| Feature | Innate immunity | Adaptive immunity |
|---|---|---|
| Speed | Minutes to hours | Days to a week |
| Specificity | General (detects broad pathogen patterns) | Highly specific (one antigen per cell) |
| Memory | No | Yes — long-lasting memory cells |
| Key cells | Neutrophils, macrophages, NK cells | T cells, B cells, plasma cells |
| Key molecules | Cytokines, complement, lysozyme | Antibodies, cytokines |
The Lymphatic System: Immune Highway
The immune system travels the body through the lymphatic system — a network of vessels, lymph nodes and lymph organs that complements the circulatory system. Lymph fluid (a pale liquid derived from blood plasma) collects from tissues and is filtered through lymph nodes — small, bean-shaped structures clustered in the neck, armpits, groin, chest and abdomen.
Lymph nodes are packed with immune cells. As lymph passes through, macrophages and dendritic cells filter out pathogens and debris. T and B cells stationed in lymph nodes are activated when antigens arrive. This is why lymph nodes swell during infection — the immune cells inside are multiplying rapidly.
Other lymphoid organs include the spleen (which filters blood and houses immune cells), the tonsils (guarding the throat), the thymus (where T cells mature) and small patches of immune tissue lining the gut called Peyer's patches. The gut is a particularly important immunological frontier because it is constantly exposed to foreign molecules from food and to the trillions of gut bacteria.
The immune system's relationship with the gut microbiome is a fascinating and rapidly growing area of research. To learn more, our digestive system guide covers the gut and its microbial inhabitants. For blood-based aspects of immunity, our blood circulation guide provides useful context.
The Complement System
Alongside antibodies and cellular defences, the immune system deploys a powerful biochemical weapon called the complement system — a collection of more than 30 proteins circulating in the blood in inactive form.
When activated (by antibodies attached to a pathogen, by direct pathogen surfaces or by other immune signals), complement proteins trigger a rapid cascade. The end result can include directly punching holes in bacterial membranes (forming the membrane attack complex), coating pathogens with molecules that mark them for destruction by phagocytes (opsonisation), and releasing chemical signals that attract more immune cells to the site.
The complement system bridges the innate and adaptive branches of immunity — it can be activated without antibodies (innate) but is greatly amplified when antibodies are present (adaptive). It is one of the most ancient parts of the immune system, present in some form in nearly all animals.
Nutrition and the Immune System
The immune system requires a steady supply of nutrients to produce cells, manufacture proteins and run biochemical reactions. Deficiencies in certain vitamins and minerals — particularly vitamin C, vitamin D, zinc, iron and folate — are associated with impaired immune function.
Vitamin D receptors are found on nearly every immune cell, and the active form of vitamin D influences both innate and adaptive responses. Vitamin C supports the function of neutrophils and stimulates antibody production. Zinc is essential for T cell development and the production of cytokines.
Rather than focusing on any single "superfood," a varied diet rich in fruit, vegetables, wholegrains, lean proteins and healthy fats provides the broad range of micronutrients the immune system needs. Our nutrition basics guide covers the fundamentals, and the body systems explorer is a great way to see how immune function connects to other body systems.
When the Immune System Misfires
A healthy immune system strikes a careful balance — active enough to eliminate real threats, but restrained enough to leave the body's own cells alone. When this balance is disrupted, problems arise in both directions.
Autoimmune conditions occur when the immune system mistakenly attacks the body's own tissues. Examples include type 1 diabetes (where the immune system destroys insulin-producing cells) and rheumatoid arthritis (where it attacks joint lining). These are complex conditions with multiple contributing factors.
Allergies represent a misdirected immune response to harmless substances such as pollen, dust mites or certain foods. The immune system treats these as threats, triggering inflammation and the release of histamine.
Immunodeficiency — whether inherited (primary) or acquired through illness — means the immune system cannot mount an adequate response to infection.
Understanding these conditions is important context, but diagnosis and management always require input from a qualified healthcare professional. If you want to test your knowledge of immune and body system topics, the anatomy quiz covers key concepts across all body systems.