Biosynthetic gene clusters (BGCs) are organized groups of genes involved in the production of specialized metabolites. Typically, one BGC is responsible for the production of one or several similar compounds with bioactivities that usually only vary in terms of strength and/or specificity. Here we show that the previously described ferroverdins and bagremycins, which are families of metabolites with different bioactivities, are produced from the same BGC, whereby the fate of the biosynthetic pathway depends on iron availability. Under conditions of iron depletion, the monomeric bagremycins are formed, which are amino-aromatic antibiotics resulting from the condensation of 3-amino-4-hydroxybenzoic acid with p-vinylphenol.Conversely, when iron is abundantly available, the biosynthetic pathway additionally produces a molecule based on p-vinylphenyl-3-nitroso-4-hydroxybenzoate, which complexes iron to form the trimeric ferroverdins that have anticholesterol activity. Thus our work challenges the concept that BGCs should produce a single family of molecules with one type of bioactivity, the occurrence of the different metabolites being triggered by the environmental conditions.