Depending on the pathogen's life cycle, its route of entry and its ability to proliferate, a different mechanism will be set in motion, and this will be the starting point of the immune response. But it is not the end point, because we always end up activating the adaptive response in order to generate memory.

*A suitable parasite is one that lives in an individual without altering or activating that individual's immune response, since the response would bring about its destruction.
Evolution has favoured certain relationships between microorganisms and people (symbiotic relationships), in which the behaviours that allowed microorganisms to go unnoticed, preventing the immune system from attacking them, have been selected.

They are divided into extracellular and intracellular.
- Extracellular pathogens need not be microorganisms. They are helminths (which are large), protozoa, fungi and bacteria.
- Fungal infection is being given more and more importance, since patients with immunodeficiencies have many infections of this type.
- Intracellular pathogens can be bacteria, protozoa, fungi and viruses; the latter are also obligate parasites.

Depending on the pathogen, there will be a different point of infection and entry into the body. Practically all microorganisms can penetrate the body and take as their point of infection the interstitial spaces, the blood and the lymph.
The mechanisms of entry into the body try to avoid or destroy the external barriers. For example, a break in the skin caused by a wound favours infection by microorganisms. The first defence consists of elements of innate immunity, and antibody-mediated defence will act afterwards. For entry through epithelia, secretory IgA, which coats the mucosal surfaces, is very important.
In situations of cytoplasmic intracellular infection the main defence mechanism will be through cytotoxic T cells and NK cells.
In vesicular intracellular infection, the microorganisms are in vesicles inside the cell and the cell cannot fight them. If the infected cell is a macrophage (the most common situation because of its capacity for phagocytosis), it remains in a constant state of activation.
IFNγ is secreted and activates other macrophages.

There are four points of entry or infection:
- When the point of infection is that of an extracellular organism, the first point of entry is the interstitial spaces, above all blood and lymph. In these situations the most important immune mechanisms are antibodies, complement and the secondary mechanisms of complement activation, such as phagocytosis resulting from opsonisation.
- When they reach an epithelial surface through the airways or mucous membranes (gastrointestinal or genitourinary), the most effective mechanism is essentially antibodies, especially IgA antibodies. In addition, in the gastrointestinal mucosa, antimicrobial peptides and defensins are important.
- If the point of infection is intracellular, the situation is more complicated, because many of the immune mechanisms (such as antibodies) do not reach this type of infection. The cells most affected are the phagocytes, since they can internalise the pathogen but not destroy it. Macrophages are at the point of entry, but they cannot destroy the pathogen. For example, in the case of Mycobacterium tuberculosis, macrophages are at the entry point and phagocytose the bacterium, but it prevents the phagosome from fusing with the primary lysosomes of the phagocyte (it prevents the formation of phagolysosomes). This means that the bacterium remains inside the macrophage without being destroyed.
- In these situations, cytolytic or cytotoxic cells (CD8+, NK cells) are the most effective mechanism for destroying the cell.
- These types of infection are not exclusive to viruses but occur with other microorganisms too.
- Inside a cell organelle or a lysosome: the most effective cellular mechanisms are those that depend on cytotoxic cells, above all CD8+ cells, and NK cells or macrophages.