Scavenging of bacteria or bacterial products by magnetic particles functionalized with a broad-spectrum pathogen recognition receptor motif offers diagnostic and therapeutic applications.