Leaf-cutting ants cultivate the fungus Leucoagaricus gongylophorus, which serves as a major food source. This symbiosis is threatened by microbial pathogens that can severely infect L. gongylophorus. Microbial symbionts of leaf-cutting ants, mainly Pseudonocardia and Streptomyces, support the ants in defending their fungus gardens against infections by supplying antimicrobial and antifungal compounds. The ecological role of microorganisms in the nests of leaf-cutting ants can only be addressed in detail if their secondary metabolites are known. Here, we use an approach for the rapid identification of established bioactive compounds from microorganisms in ecological contexts by combining phylogenetic data, database searches, and liquid chromatography electrospray ionisation high resolution mass spectrometry (LC-ESI-HR-MS) screening. Antimycins A 1 -A 4 , valinomycins, and actinomycins were identified in this manner from Streptomyces symbionts of leaf-cutting ants. Matrix-assisted laser desorption ionization (MALDI) imaging revealed the distribution of valinomycin directly on the integument of Acromyrmex echinatior workers. Valinomycins and actinomycins were also directly identified in samples from the waste of A. echinatior and A. niger leaf-cutting ants, suggesting that the compounds exert their antimicrobial and antifungal potential in the nests of leaf-cutting ants. Strong synergistic effects of the secondary metabolites produced by ant-associated Streptomyces were observed in the agar diffusion assay against Escovopsis weberi. Actinomycins strongly inhibit soil bacteria as well as other Streptomyces and Pseudonocardia symbionts. The antifungal antimycins are not only active against pathogenic fungi but also the garden fungus L. gongylophorus itself. In conclusion, secondary metabolites of microbial symbionts of leaf-cutting ants contribute to shaping the microbial communities within the nests of leaf-cutting ants.