Mucus acts as a physical barrier to foreign pathogens in the following ways:
Mucus traps pathogens trying to enter the body through various openings. It entangles them and slows their movement. Mucus also contains antibodies and enzymes that can destroy pathogens. Finally, mucus is constantly moved by cilia up and out of the body, sweeping pathogens away from vulnerable tissues.