Cellular illustration of B cells, T cells and antibody production in immune memory

How the Immune System Remembers Infection: B Cells, T Cells and Vaccination

You have probably heard someone say, “I’ve had that infection before, so my immune system knows what to do.” That sounds simple, but what does the immune system actually remember?

There is no tiny record of the infection stored somewhere in the body. Immune memory is created because some of the B and T lymphocytes involved in an adaptive immune response survive after the infection has been controlled. If the same antigen appears again, those memory cells mean the immune system is no longer starting from scratch.

To understand why that matters, follow one infection from the moment a pathogen gets in.

First exposure: the immune system has never seen this antigen before

Imagine a respiratory virus enters through the airway. The body does not wait for antibodies before doing anything. The innate immune system responds first.

Physical and chemical barriers try to prevent infection in the first place. Once a pathogen has crossed those barriers, innate immune cells recognise broad signs of infection, inflammation develops, phagocytic cells can engulf material, and complement can contribute to defence. This response is fast, but it is not tailored with the same antigen-specific precision as adaptive immunity.

That distinction matters. The innate response buys time and helps contain the threat, while the adaptive immune response builds something much more specific.

Cells including dendritic cells can take up pathogen material, process it and display peptide fragments on major histocompatibility complex (MHC) molecules. This is antigen presentation. In simple terms, part of the pathogen is being shown to T cells so that an appropriate antigen-specific response can develop.

But not every T cell recognises that antigen. B and T lymphocytes carry receptors with particular specificities. Somewhere among the enormous population of lymphocytes are cells whose receptors can recognise the relevant antigen. When the right antigen is encountered in the appropriate context, with the necessary supporting signals, those lymphocytes can become activated.

This is where clonal selection becomes much easier to understand: the immune system is not designing a brand-new lymphocyte from scratch. It is selecting lymphocytes that already have the appropriate receptor specificity and then making many copies of them.

So the first important chain is: pathogen enters → innate response begins → antigen is presented → matching lymphocytes are activated → those cells multiply.

Now the B cells and T cells get to work

Once selected lymphocytes are activated, they undergo clonal expansion. One antigen-specific cell can therefore give rise to a much larger population able to participate in the response.

Activated B cells can differentiate into plasma cells, which produce antibodies. An antibody binds to a particular antigenic target. Depending on the infection and antibody, this can help neutralise a pathogen or toxin, make material easier for phagocytes to recognise and remove, and contribute to other immune mechanisms such as complement activation.

This is why “antibodies fight infection” is true but incomplete. Antibodies are part of a coordinated response. They do not swallow pathogens themselves, and an antibody against one antigen does not automatically recognise an unrelated pathogen.

B-cell responses can also become more effective as they develop. In germinal centres, activated B cells can undergo processes including affinity maturation, which favours B cells producing antibodies that bind their target more strongly, and class switching, which changes the antibody class while retaining antigen specificity. You do not need to memorise every molecular step to understand the important point: the adaptive response can be refined, not merely expanded.

T cells have different jobs. CD4 T cells help coordinate adaptive immune responses and provide important support to other immune cells, including B cells. CD8 T cells can recognise infected cells displaying the relevant antigen through MHC class I and kill those infected cells.

So by this stage, the body is using several layers of defence at once. Innate mechanisms have not simply switched off because adaptive immunity has arrived. Antibodies, T cells, phagocytes, complement and inflammatory mechanisms can all contribute, with the balance differing between infections.

The infection clears, so why does the response not simply disappear?

Once the threat is controlled, maintaining huge numbers of activated effector lymphocytes would be unnecessary. Much of the expanded population therefore contracts.

But some antigen-experienced cells persist as memory B cells and memory T cells. Longer-lived plasma cells can also continue producing antibody for varying periods.

This is the key to immune memory. The body has changed because of the first exposure. It now has a population of cells that has already been selected by that antigen.

Now imagine the same pathogen appears again months or years later. During the first infection, rare antigen-specific lymphocytes had to be found, activated and expanded. On re-exposure, memory populations are already present and can respond more rapidly. Memory B cells can contribute to renewed antibody responses, and memory T cells can respond more efficiently to the antigen they recognise.

The secondary response can therefore begin from a much more prepared position.

First exposure: recognise → select → expand → fight → leave memory.

Later exposure: recognise again → activate existing memory populations → mount a faster, often more effective response.

That does not mean reinfection is impossible. Immune protection varies between pathogens and people. Antibody concentrations can fall, pathogens can change their antigens, immune responses can be impaired, and some infections simply do not generate complete or lifelong protection. Immune memory may still reduce the likelihood or severity of disease even when it does not prevent every infection.

Vaccination uses the same principle without requiring the full disease first

Once immune memory makes sense, vaccination becomes much less mysterious.

What if the immune system could be shown an appropriate antigen, or given instructions that allow an antigen to be produced, before the person encounters the disease-causing pathogen?

That is the basic principle of active immunisation. Vaccines stimulate an immune response so that antigen-specific immunity and immunological memory can develop without the person having to experience the full natural disease. UKHSA describes immunological memory as allowing the immune system to recognise and respond rapidly to later natural infection, helping to prevent or modify disease.

Different vaccines achieve this in different ways. Some use weakened live organisms; some use inactivated organisms; others contain selected antigens, toxoids or conjugated components. Viral-vector and mRNA technologies provide antigenic information in different ways. The platform changes, but the teaching principle is the same: the immune system is being given a controlled opportunity to build a relevant adaptive response.

This also explains why some vaccines need more than one dose. A first dose may prime the immune system, while later doses can strengthen, restore or broaden the response. The number and timing of doses depend on the vaccine, the disease and the evidence behind the immunisation programme. A booster does not mean the earlier dose “failed”; it can build on immune memory that is already there. Current UK schedules should therefore be checked rather than assumed.

Bring it back to the patient

On placement, immune memory stops being an abstract biology topic surprisingly quickly.

You may care for a patient receiving chemotherapy whose immune response to vaccination is reduced, a patient with significant immunosuppression for whom some live vaccines may be unsuitable, or someone asking why they need another dose of a vaccine they have already received.

The physiology gives you the reasoning behind those conversations, but it does not replace current clinical guidance. Vaccine eligibility, contraindications, schedules and timing can change and may differ for people with underlying conditions or immunosuppressive treatment. The UK Green Book is the national professional reference and is updated chapter by chapter. The current complete routine immunisation schedule should also be checked for the latest programme timings.

As a student nurse, your job is not to improvise an immunisation schedule from your understanding of B and T cells. It is to understand the science well enough to make sense of the care you are seeing, check the relevant guidance with your supervising registered professional, communicate accurately, recognise when specialist advice is needed and work within your competence.

So when a patient asks, “How can my body remember something it saw years ago?”, you now have a better answer than “because you have antibodies.”

The useful chain to keep: antigen exposure → antigen-specific lymphocytes selected → clonal expansion → effector B- and T-cell responses → infection controlled → memory populations remain → later exposure begins from a prepared position.

That is immune memory. Vaccination takes advantage of it.

References

UK Health Security Agency (2021). Immunity and how vaccines work: The Green Book, chapter 1. Available at: UKHSA Green Book, Chapter 1.

UK Health Security Agency. Immunisation against infectious disease: The Green Book. Available at: The Green Book.

UK Health Security Agency (2026). Complete routine immunisation schedule from 1 July 2026. Updated 17 August 2026. Available at: Complete routine immunisation schedule.

NHS. Why vaccination is important and the safest way to protect yourself. Available at: NHS vaccination information.

Nursing and Midwifery Council (NMC). The Code. Available at: NMC Code.

This article is for student learning and does not replace clinical assessment, current national guidance, local policy, supervision or individual medical advice.

Back to blog