The immune system
Peer reviewed by Dr Colin Tidy, MRCGPLast updated by Dr Toni HazellLast updated 7 Aug 2023
Meets Patient’s editorial guidelines
- DownloadDownload
- Share
In this series:Immunosuppression
This leaflet gives a brief overview of the immune system and how it works. A person with a weak immune system might have difficulty fighting off infections. In autoimmune diseases the body is unable to tell what is its own and what is foreign, so it attacks itself. Autoimmune diseases can attack any part of the body - eg, type 1 diabetes (pancreas), multiple sclerosis (brain and nerves), systemic lupus erythematosus (skin and organs). These diseases are managed by the specialist who knows most about the system affected for that person - eg, multiple sclerosis is managed by a neurologist.
In this article:
Continue reading below
What is the immune system?
We are surrounded by millions of bacteria, viruses and other germs (microbes) that have the potential to enter our bodies and cause harm. The immune system is the body's defence against disease-causing microbes (pathogens).
lymphatic system
The immune system is made up of non-specialised defences such as your skin (acting as a barrier) and strong acid stomach juices. However it also has some highly specialised defences which give you resistance to particular pathogens. Another name for this resistance is immunity. These defences are special white blood cells called lymphocytes. Other types of white blood cells play an important part in defending your body against infection.
The lymphatic system is also part of the immune system. The lymphatic system is made up of a network of tubes (vessels) which carry fluid called lymph. It contains specialised lymph tissue and all of the structures dedicated to the production of lymphocytes.
Some disorders of the immune system include:
HIV and AIDS - when your immune system is weakened.
Lymphoma, myeloma and leukaemia - cancers of cells which are part of your immune system.
Allergy - when your immune system overreacts.
Antibody and antigen tests may be done to help identify certain infections and some other disorders.
Patient picks for The immune system
Allergies, blood & immune system
Does my diet really affect my immune system?
'You are what you eat', as the saying goes. But just how much does what we eat impact the body's ability to fight off infection and keep us healthy - and can certain foods really boost our immune systems?
by Allie Anderson
Allergies, blood & immune system
Swollen lymph glands
There are a number of causes of swollen lymph glands. The most common cause is infection. See your doctor if you have swollen lymph glands and you do not know why they have swollen, or if swollen lymph glands caused by an infection do not go down again within two weeks.
by Dr Doug McKechnie, MRCGP
Where is the immune system located?
There are generally two parts of the immune system. The first part is the defences you are born with. These form what are known as the innate system.
The innate immune system
The innate system is found in many different places around the body. First line of defence is your skin. Skin forms a waterproof barrier that prevents pathogens from entering the body. Your body cavities, such as your nose and mouth, are lined with mucous membranes. Mucous membranes produce sticky mucus which can trap bacteria and other pathogens.
Other fluids produced by your body help to protect your internal layers from invasion by pathogens. Gastric juice produced by your stomach has high acidity which helps to kill off many of the bacteria in food. Saliva washes pathogens off your teeth and helps to reduce the amount of bacteria and other pathogens in your mouth.
The acquired immune system
The second part of your immune system, known as immunity, develops as you grow. Your immunity gives you protection against specific pathogens. Not only can this system recognise particular pathogens, it also has a memory of this. This means that if you encounter a certain pathogen twice, your immune system recognises it the second time around. This usually means your body responds quicker to fight infections.
If bacteria or other pathogens manage to get through these first-line defences, they encounter a second line of defence. Most of these defences are present in your blood, either as specialised white blood cells or as chemicals released by your cells and tissues.
The second part of your immune system, the part that gives you immunity, involves the activation of lymphocytes. This will be described later on. Lymphocytes are found in your blood and also in specialised lymph tissue such as lymph nodes, your spleen and your thymus.
Continue reading below
How does the immune system work?
The first line of defence is your body's skin and mucous membranes.
If pathogens manage to get through these barriers, they encounter special white blood cells present in your bloodstream. There are different types of white cells, called neutrophils (polymorphs), lymphocytes, eosinophils, monocytes, and basophils.
White blood cells travel in your bloodstream and react to different types of infection. These might be caused by bacteria, viruses or other pathogens. Neutrophils engulf bacteria and destroy them with special chemicals. Eosinophils and monocytes also work by swallowing up foreign particles in your body. Basophils help to intensify swelling (inflammation).
Inflammation is part of your body's immune response. Damage to your tissues causes the release of different chemicals into your blood. These chemicals make blood vessels leaky, helping specialised white blood cells get to where they are needed. They also attract neutrophils and monocytes to the site of the injury. This helps to protect against a bacterial infection developing.
What are lymphocytes?
Lymphocytes have a variety of different functions. They attack viruses and other pathogens. They also make antibodies which help to destroy bacteria. Lymphocytes are divided into T cells and B cells.
Bone marrow is the tissue found within the internal cavity of your bones. It contains stem cells, which create B and T cells. B cells mature and develop in the bone marrow whereas T cells mature in your thymus (see later for a detailed description of your thymus). These are the cells responsible for developing immunity to particular types of bacteria and viruses.
Blood cell production
B cells and T cells work in different ways.
What are B cells?
B cells produce antibodies. Antibodies are a special type of protein which attacks antigens. Antigens are like flags to our immune system. They usually identify a molecule as being foreign. They can be found on the surface of bacteria but they can also be found on substances which don't cause any diseases - for example, in pollen, egg whites or transplanted organs.
An antigen is a chemical part of a molecule which generates an antibody response in your body. Literally it means antibody generator. One of the most amazing features of the immune system is that B cells can recognise millions of different antigens. B cells can recognise antigens that have never entered the body before and even man-made molecules that don't even exist in nature.
When a foreign particle enters your body, B cells recognise it, binding to the antigen on its surface. This activates the B cell which then changes into a plasma cell. The plasma cell makes antibodies specific to that antigen.
Antibodies can immobilise bacteria, encourage other cells to 'eat' the pathogen and activate other immune defences. While some B cells become plasma cells, others don't. These cells live on as memory B cells that respond more vigorously should the same antigen invade your body again.
What are T cells?
T cells directly attack the invading organism; however, they are not able to recognise antigens without the help of other cells. These cells process the antigen and then present them to T cells.
T cells are very different from each other. When an antigen enters the body only a few T cells are able to recognise and bind to the antigen. While T cells also bind to antigens they need a second signal to become activated. Once activated, T cells get bigger and start to divide.
These cells then target the invaders and release chemicals that destroy the pathogen. Like B cells, some of the T cells remain to form memory T cells. This allows your body to respond quickly if the same antigen enters your body.
What is the lymphatic system?
The lymphatic system is a major part of your body's defence against infection. Lymph nodes are one of the components of this system. These are specialised structures which are found in lymph vessels. Lymph nodes are a filter for the lymph flowing through the vessels. They contain B and T cells which recognise bacteria and pathogens which have entered your lymph via your bloodstream.
When foreign material is detected, other dedicated immune cells are recruited to the node to deal with the infection. This helps to prevent the infection from spreading throughout your body.
There are around 550 lymph nodes throughout your body, usually in groups. Large groups of lymph nodes are found in your groin (inguinal nodes), in your armpit (axillary nodes) and in your neck area (cervical nodes). In health they are pea-sized but if you develop an infection you may find that they become enlarged. This is due to a build-up (accumulation) of lymphocytes and other cells of the immune system.
Lymphoid tissue helps to defend mucosal surfaces, such as the mouth and intestines, from infection. Your tonsils, which are found in the back of your throat, often become enlarged in response to infection. These tissues help to trap bacteria and other pathogens and activate white blood cells.
What is the thymus?
The thymus is an important lymphatic organ. It is found in front of your windpipe (trachea). Its main role is to teach white blood cells to recognise our own cells. In order for your immune system to function properly, white blood cells must be able to discriminate between invading pathogens and your body's own cells.
After T cells are produced in the bone marrow they migrate to your thymus. Here they are educated by your thymus to stop them from attacking your own cells. It is thought that some forms of autoimmune disease (where the body attacks itself) may be due to problems with this process. Your thymus is at its largest during puberty, and becomes smaller as you become older.
What is the spleen?
The spleen is the largest single mass of lymphatic tissue in your body. Located just under your rib cage on the left side of your body, your spleen helps to filter your blood. It contains specialised tissue called white pulp. This contains white blood cells which respond to bacteria and other pathogens in a similar way to those in lymph nodes. Other tissue in the spleen, called red pulp, helps to remove damaged red blood cells and store platelets.
How to boost the immune system
It is an urban myth that the immune system needs 'boosting' in any way and any products which claim to have an effect on the immune system are probably best avoided.
The most important thing that you can do for the immune system is to take any vaccinations that are offered, and to make sure that your child has all the vaccinations which are requested. There is absolutely no truth in claims that vaccines cause autism, and not being vaccinated can leave you at risk of infections such as measles which can cause severe symptoms, brain damage and death. The type of protection given by vaccination is called adaptive immunity.
In some cases, a doctor will want to give you 'passive immunity' via an injection of a substance called immunoglobulin. This may be done if you have been exposed to an infectious disease against which you have not been vaccinated.
Further reading and references
- Immunisation against infectious disease - the Green Book (latest edition); UK Health Security Agency.
- Tomar N, De RK; A brief outline of the immune system. Methods Mol Biol. 2014;1184:3-12. doi: 10.1007/978-1-4939-1115-8_1.
Continue reading below
Article history
The information on this page is written and peer reviewed by qualified clinicians.
Next review due: 5 Aug 2028
7 Aug 2023 | Latest version
Are you protected against flu?
See if you are eligible for a free NHS flu jab today.
Feeling unwell?
Assess your symptoms online for free