Colonization resistance works through multiple mechanisms. The native microbiota competes with pathogens for nutrients and physical space, produces antimicrobial compounds, and stimulates the host's immune system. These processes collectively inhibit the colonization and growth of pathogenic organisms.