Pathogen trapping is a process where pathogens are captured and immobilized by host structures or mechanisms, preventing them from spreading and causing infection. This can occur through physical barriers, immune responses, or molecular interactions that specifically target and neutralize pathogens.