MSD Manual

Please confirm that you are not located inside the Russian Federation

honeypot link

Overview of the Immune System


Peter J. Delves

, PhD, University College London, London, UK

Last full review/revision Apr 2020| Content last modified Apr 2020
Click here for the Professional Version
Topic Resources

The immune system is designed to defend the body against foreign or dangerous invaders. Such invaders include

  • Microorganisms (commonly called germs, such as bacteria, viruses, and fungi)

  • Parasites (such as worms)

  • Cancer cells

  • Transplanted organs and tissues

To defend the body against these invaders, the immune system must be able to distinguish between

  • What belongs in the body (self)

  • What does not (nonself or foreign)

Antigens are any substances that the immune system can recognize and that can thus stimulate an immune response. If antigens are perceived as dangerous (for example, if they can cause disease), they can stimulate an immune response in the body. Antigens may be contained within or on bacteria, viruses, other microorganisms, parasites, or cancer cells. Antigens may also exist on their own—for example, as food molecules or pollen.

A normal immune response consists of the following:

  • Recognizing a potentially harmful foreign antigen

  • Activating and mobilizing forces to defend against it

  • Attacking it

  • Controlling and ending the attack

If the immune system malfunctions and mistakes self for nonself, it may attack the body’s own tissues, causing an autoimmune disorder, such as rheumatoid arthritis, Hashimoto thyroiditis, or systemic lupus erythematosus (lupus).

Disorders of the immune system occur when

  • The body generates an immune response against itself (an autoimmune disorder).

  • The body cannot generate appropriate immune responses against invading microorganisms (an immunodeficiency disorder).

  • The body generates an excessive immune response to often harmless foreign antigens and damages normal tissues (an allergic reaction).

Components of the Immune System

The immune system has many components:

Antibodies (immunoglobulins) are proteins that are produced by white blood cells called B cells and that tightly bind to the antigen of an invader, tagging the invader for attack or directly neutralizing it. The body produces thousands of different antibodies. Each antibody is specific to a given antigen.

Antigens are any substance that the immune system can recognize and that can thus stimulate an immune response.

B cells (B lymphocytes) are white blood cells that produce antibodies specific to the antigen that stimulated their production.

Basophils are white blood cells that release histamine (a substance involved in allergic reactions) and that produce substances to attract other white blood cells (neutrophils and eosinophils) to a trouble spot.

Cells are the smallest unit of a living organism, composed of a nucleus and cytoplasm surrounded by a membrane.

Chemotaxis is the process of by which a chemical substance attracts cells to a particular site.

The complement system consists of a group of proteins that are involved in a series of reactions (called the complement cascade) designed to defend the body—for example, by killing bacteria and other foreign cells, making foreign cells easier for macrophages to identify and ingest, and attracting macrophages and neutrophils to a trouble spot.

Cytokines are numerous different proteins that are secreted by immune and other cells and that act as the immune system’s messengers to help regulate an immune response.

Dendritic cells are derived from white blood cells. They reside in tissues and help T cells recognize foreign antigens.

Eosinophils are white blood cells that kill bacteria and other foreign cells too big to ingest, and they may help immobilize and kill parasites and help destroy cancer cells. Eosinophils also participate in allergic reactions.

Helper T cells are white blood cells that help B cells produce antibodies against foreign antigens, help killer T cells become active, and stimulate macrophages, enabling them to ingest infected or abnormal cells more efficiently.

Histocompatibility (literally, compatibility of tissue) is determined by human leukocyte antigens (self-identification molecules). Histocompatibility is used to determine whether a transplanted tissue or organ will be accepted by the recipient.

Human leukocyte antigens (HLA) are a group of identification molecules located on the surface of all cells in a combination that is almost unique for each person, thereby enabling the body to distinguish self from nonself. This group of identification molecules is also called the major histocompatibility complex.

An immune complex is an antibody attached to an antigen.

An immune response is the reaction of the immune system to an antigen.

Immunoglobulin is another name for antibody.

Interleukin is a type of messenger (cytokine) secreted by some white blood cells to affect other white blood cells.

Killer (cytotoxic) T cells are T cells that attach to infected cells and cancer cells and kill them.

Leukocyte is another name for a white blood cell, such as a monocyte, a neutrophil, an eosinophil, a basophil, or a lymphocyte (a B cell or T cell).

The lymphatic system is a network of lymph nodes connected by lymphatic vessels that helps the body transport microorganisms and dead or damaged cells to be filtered out and destroyed. Acquired immune responses are initiated in the lymph nodes.

Lymphocytes are the white blood cells responsible for acquired (specific) immunity, including producing antibodies (by B cells), distinguishing self from nonself (by T cells), and killing infected cells and cancer cells (by killer T cells).

Macrophages are large cells that develop from white blood cells called monocytes. They ingest bacteria and other foreign cells and help T cells identify microorganisms and other foreign substances. Macrophages are normally present in the lungs, skin, liver, and other tissues.

Major histocompatibility complex (MHC) is a synonym for human leukocyte antigens.

Mast cells are cells in tissues that release histamine and other substances involved in inflammatory and allergic reactions.

A molecule is a group of atoms chemically combined to form a unique substance.

Natural killer cells are a type of white blood cell that can recognize and kill abnormal cells, such as certain infected cells and cancer cells, without having to first learn that the cells are abnormal.

Neutrophils are white blood cells that ingest and kill bacteria and other foreign cells.

Phagocytes are a type of cell that ingests and kills or destroys invading microorganisms, other cells, and cell fragments. Phagocytes include neutrophils and macrophages.

Phagocytosis is the process of a cell engulfing and ingesting an invading microorganism, another cell, or a cell fragment.

A receptor is a molecule on a cell’s surface or inside the cell that can identify specific molecules, which fit precisely in it—as a key fits in its lock.

Regulatory (suppressor) T cells are white blood cells that help end an immune response.

T cells (T lymphocytes) are white blood cells that are involved in acquired immunity. There are three types: helper, killer (cytotoxic), and regulatory.

White blood cells (leukocytes) exist in several different types, such as monocytes, neutrophils, eosinophils, basophils, and lymphocytes (B cells and T cells), each of which have different roles in the immune system.

Lines of Defense

The body has a series of defenses. Defenses include

  • Physical barriers

  • White blood cells

  • Molecules such as antibodies and complement proteins

  • Lymphoid organs

Physical barriers

The first line of defense against invaders is mechanical or physical barriers:

  • The skin

  • The cornea of the eyes

  • Membranes lining the respiratory, digestive, urinary, and reproductive tracts

As long as these barriers remain unbroken, many invaders cannot enter the body. If a barrier is broken—for example, if extensive burns damage the skin—the risk of infection is increased.

In addition, the barriers are defended by secretions containing enzymes that can destroy bacteria. Examples are sweat, tears in the eyes, mucus in the respiratory and digestive tracts, and secretions in the vagina.

White blood cells

The next line of defense involves white blood cells (leukocytes) that travel through the bloodstream and into tissues, searching for and attacking microorganisms and other invaders.

This defense has two parts:

  • Innate immunity

  • Acquired immunity

Innate (natural) immunity: Innate means something a person is born with. So innate immunity does not require a previous encounter with a microorganism or other invader to work effectively. It responds to invaders immediately, without needing to learn to recognize them. Several types of white blood cells are involved:

Acquired (adaptive or specific) immunity: In acquired immunity, white blood cells called lymphocytes (B cells and T cells) encounter an invader, learn how to attack it, and remember the specific invader so that they can attack it even more efficiently the next time they encounter it. Acquired immunity takes time to develop after the initial encounter with a new invader because the lymphocytes must adapt to it. However, thereafter, response is quick. B cells and T cells work together to destroy invaders. To be able to recognize invaders, T cells need help from cells called antigen-presenting cells (such as dendritic cells—see figure How T Cells Recognize Antigens). These cells ingest an invader and break it into fragments.


Innate immunity and acquired immunity interact, influencing each other directly or through molecules that attract or activate other cells of the immune system—as part of the mobilization step in defense. These molecules include

These substances are not contained in cells but are dissolved in a body fluid, such as plasma (the liquid part of blood).

Some of these molecules, including some cytokines, promote inflammation.

Inflammation occurs because these molecules attract immune system cells to the affected tissue. To help get these cells to the tissue, the body sends more blood to the tissue. To carry more blood to the tissue, blood vessels expand and become more porous, allowing more fluids and cells to leave blood vessels and enter the tissue. Inflammation thus tends to cause redness, warmth, and swelling. The purpose of inflammation is to contain the infection so that it does not spread. Then other substances produced by the immune system help the inflammation resolve and damaged tissues heal. Although inflammation may be bothersome, it indicates that the immune system is doing its job. However, excessive or long-term (chronic) inflammation can be harmful.

Lymphoid organs

The immune system includes several organs in addition to cells dispersed throughout the body. These organs are classified as primary or secondary lymphoid organs.

The primary lymphoid organs are the sites where white blood cells are produced and/or multiply:

  • The bone marrow produces all the different types of white blood cells, including neutrophils, eosinophils, basophils, monocytes, B cells, and the cells that develop into T cells (T cell precursors).

  • In the thymus, T cells multiply and are trained to recognize foreign antigens and to ignore the body’s own antigens. T cells are critical for acquired immunity.

When needed to defend the body, the white blood cells are mobilized, mainly from the bone marrow. They then move into the bloodstream and travel to wherever they are needed.

Lymphatic System: Helping Defend Against Infection

The lymphatic system is a vital part of the immune system, along with the thymus, bone marrow, spleen, tonsils, appendix, and Peyer patches in the small intestine.

The lymphatic system is a network of lymph nodes connected by lymphatic vessels. This system transports lymph throughout the body.

Lymph is formed from fluid that seeps through the thin walls of capillaries into the body's tissues. This fluid contains oxygen, proteins, and other nutrients that nourish the tissues. Some of this fluid reenters the capillaries and some of it enters the lymphatic vessels (becoming lymph).

Small lymphatic vessels connect to larger ones and eventually form the thoracic duct. The thoracic duct is the largest lymphatic vessel. It joins with the subclavian vein and thus returns lymph to the bloodstream.

Lymph also transports foreign substances (such as bacteria), cancer cells, and dead or damaged cells that may be present in tissues into the lymphatic vessels and to lymph nodes for disposal. Lymph contains many white blood cells.

All substances transported by the lymph pass through at least one lymph node, where foreign substances can be filtered out and destroyed before fluid is returned to the bloodstream. In the lymph nodes, white blood cells can collect, interact with each other and with antigens, and generate immune responses to foreign substances. Lymph nodes contain a mesh of tissue that is tightly packed with B cells, T cells, dendritic cells, and macrophages. Harmful microorganisms are filtered through the mesh, then identified and attacked by B cells and T cells.

Lymph nodes are often clustered in areas where the lymphatic vessels branch off, such as the neck, armpits, and groin.

Lymphatic System: Helping Defend Against Infection

The secondary lymphoid organs include the

  • Spleen

  • Lymph nodes

  • Tonsils

  • Appendix

  • Peyer patches in the small intestine

These organs trap microorganisms and other foreign substances and provide a place for mature cells of the immune system to collect, interact with each other and with the foreign substances, and generate a specific immune response.

The lymph nodes are strategically placed in the body and are connected by an extensive network of lymphatic vessels—the lymphatic system. The lymphatic system transports microorganisms, other foreign substances, cancer cells, and dead or damaged cells from the tissues to the lymph nodes, where these substances and cells are filtered out and destroyed. Then the filtered lymph is returned to the bloodstream.

Lymph nodes are one of the first places that cancer cells can spread. Thus, doctors often evaluate lymph nodes to determine whether a cancer has spread. Cancer cells in a lymph node can cause the node to swell. Lymph nodes can also swell after an infection because acquired immune responses to infections are generated in lymph nodes. Sometimes lymph nodes swell because bacteria that are carried to a lymph node are not killed and cause an infection in the lymph node (lymphadenitis).

Did You Know...

  • Lymph nodes contain a mesh of tissue where harmful microorganisms and dead or damaged cells are filtered out and destroyed.

Plan of Action

A successful immune response to invaders requires

  • Recognition

  • Activation and mobilization

  • Regulation

  • Resolution


To be able to destroy invaders, the immune system must first recognize them. That is, the immune system must be able to distinguish what is nonself (foreign) from what is self. The immune system can make this distinction because all cells have identification molecules (antigens) on their surface. Microorganisms are recognized because the identification molecules on their surface are foreign.

In people, the most important self-identification molecules are called

  • Human leukocyte antigens (HLA), or the major histocompatibility complex (MHC)

HLA molecules are called antigens because if transplanted, as in a kidney or skin graft, they can provoke an immune response in another person (normally, they do not provoke an immune response in the person who has them). Each person has an almost unique combination of HLAs. Each person’s immune system normally recognizes this unique combination as self. A cell with molecules on its surface that are not identical to those on the body’s own cells is identified as being foreign. The immune system then attacks that cell. Such a cell may be a cell from transplanted tissue or one of the body’s cells that has been infected by an invading microorganism or altered by cancer. (HLA molecules are what doctors try to match when a person needs an organ transplant.)

Some white blood cells—B cells (B lymphocytes)—can recognize invaders directly. But others—T cells (T lymphocytes)—need help from cells called antigen-presenting cells:

  • Antigen-presenting cells ingest an invader and break it into fragments.

  • The antigen-presenting cell then combines antigen fragments from the invader with the cell's own HLA molecules.

  • The combination of antigen fragments and HLA molecules is moved to the cell’s surface.

  • A T cell with a matching receptor on its surface can attach to part of the HLA molecule presenting the antigen fragment, as a key fits into a lock.

  • The T cell is then activated and begins fighting the invaders that have that antigen.

How T Cells Recognize Antigens

T cells are part of the immune surveillance system. They travel through the bloodstream and lymphatic system. When they reach the lymph nodes or another secondary lymphoid organ, they look for foreign substances (antigens) in the body. However, before they can fully recognize and respond to a foreign antigen, the antigen must be processed and presented to the T cell by another white blood cell, called an antigen-presenting cell. Antigen-presenting cells consist of dendritic cells (which are the most effective), macrophages, and B cells.

How T Cells Recognize Antigens

Activation and mobilization

White blood cells are activated when they recognize invaders. For example, when the antigen-presenting cell presents antigen fragments bound to HLA to a T cell, the T cell attaches to the fragments and is activated. B cells can be activated directly by invaders. Once activated, white blood cells ingest or kill the invader or do both. Usually, more than one type of white blood cell is needed to kill an invader.

Immune cells, such as macrophages and activated T cells, release substances that attract other immune cells to the trouble spot, thus mobilizing defenses. The invader itself may release substances that attract immune cells.


The immune response must be regulated to prevent extensive damage to the body, as occurs in autoimmune disorders. Regulatory (suppressor) T cells help control the response by secreting cytokines (chemical messengers of the immune system) that inhibit immune responses. These cells prevent the immune response from continuing indefinitely.


Resolution involves confining the invader and eliminating it from the body. After the invader is eliminated, most white blood cells self-destruct and are ingested. Those that are spared are called memory cells. The body retains memory cells, which are part of acquired immunity, to remember specific invaders and respond more vigorously to them at the next encounter.

NOTE: This is the Consumer Version. DOCTORS: Click here for the Professional Version
Click here for the Professional Version
Others also read
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID

Test your knowledge

Chronic Granulomatous Disease
Chronic granulomatous disease is a hereditary disorder of the immune system. In this disorder, phagocytes, a type of white blood cell, do not function properly. Normal phagocytes ingest and then kill microorganisms invading the body. In chronic granulomatous disease, the phagocytes can ingest invaders but cannot kill them. They lack the ability to produce certain substances that normally enable them to kill. When does chronic granulomatous disease typically first appear?
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID

Also of Interest

Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID
Download the Manuals App iOS ANDROID