>>12348164Well, if we're talking about the gut, our immune system has M cells and Paneth cells, the M cells have the ability to capture some antigens and present them to dendritic cells that are going to start an immune response and Paneth cells can secrete lysozimes that break the bacteria's cell wall.
Also, there is an humoral response, lined in the plasmatic membrane of the epithelhium of the gut are IgA antibodies, they can opsonize(cover) microbes, block the microbes receptos, and activate, although weakly, the complement system, a system of proteins specialized in a myriad of immune functions. Furthermore, in the gut's lumen our microbiota can protect us by covering receptors and by a process of competition of nutrients.
There is more, but I think this is sufficient for now.