Bioassay-guided metabolomic analyses led to the characterization of four new 20-membered glycosylated polyketide macrolactams, macrotermycins A-D, from a termite-associated actinomycete, Amycolatopsis sp. M39. M39's sequenced genome revealed the macrotermycin's putative biosynthetic gene cluster. Macrotermycins A and C had antibacterial activity against human-pathogenic Staphylococcus aureus and, of greater ecological relevance, they also had selective antifungal activity against a fungal parasite of the termite fungal garden.