Another type of leucocytes or white blood cells called lymphoctes have special recognition
antibodies on their outer surface. This is specific immunity as the antibodies are specific to a particular pathogen.
We produce many thousand different kinds of these cells. Two are shown below.

When the antigen proteins on the outer surface of pathogens fit the antibodies the correct type of lymphocytes are reproduced many times by cloning. Then the many thousands of these cells release antibodies which identify the pathogens for destruction. They can be ingested by phagocytic white blood cells or be bound together by the antibodies.

Bacteria populations have evolved with genes that give them resistance to antibiotics.
This has happened as an accelerated form of natural selection because of the over use of antibiotics.
There are now some strains of bacteria that have evolved resistance to many different types of antibiotics. These are called multiple resistant.