Ants treat infections and thereby prevent pathogen replication and hence disease transmission through the colony. They are able to detect infections already during the non-infectious incubation period by chemical cues and to treat them by complex behaviors and use of antimicrobials. This allows them to prevent the pathogen from producing new infectious particles, a highly efficient way to stop disease spread through the colony.
Read more on how ants detect and treat infections: