Parasites influence host biology and population structure, and thus shape the evolution of their hosts. Parasites often accelerate the evolution of host defences, including direct defences such as evasion and sanitation and indirect defences such as the management of beneficial microbes that aid in the suppression or removal of pathogens. Fungus-growing ants are doubly burdened by parasites, needing to protect their crops as well as themselves from infection. We show that parasite removal from fungus gardens is more complex than previously realized. In response to infection of their fungal gardens by a specialized virulent parasite, ants gather and compress parasitic spores and hyphae in their infrabuccal pockets, then deposit the resulting pellet in piles near their gardens. We reveal that the ants' infrabuccal pocket functions as a specialized sterilization device, killing spores of the garden parasite Escovopsis. This is apparently achieved through a symbiotic association with actinomycetous bacteria in the infrabuccal pocket that produce antibiotics which inhibit Escovopsis. The use of the infrabuccal pocket as a receptacle to sequester Escovopsis, and as a location for antibiotic administration by the ants' bacterial mutualist, illustrates how the combination of behaviour and microbial symbionts can be a successful defence strategy for hosts.