Profiling and structural elucidation of secondary metabolites produced by the filamentous fungus Penicillium chrysogenum and derived deletion strains were used to identify the various metabolites and enzymatic steps belonging to the roquefortine/meleagrin pathway. Major abundant metabolites of this pathway were identified as histidyltryptophanyldiketopiperazine (HTD), dehydrohistidyltryptophanyldi-ketopiperazine(DHTD), roquefortine D, roquefortine C, glandicoline A, glandicoline B and meleagrin. Specific genes could be assigned to each enzymatic reaction step. The nonribosomal peptide synthetase RoqA accepts L-histidine and L-tryptophan as substrates leading to the production of the diketopiperazine HTD. DHTD, previously suggested to be a degradation product of roquefortine C, was found to be derived from HTD involving the cytochrome P450 oxidoreductase RoqR. The dimethylallyltryptophan synthetase RoqD prenylates both HTD and DHTD yielding directly the products roquefortine D and roquefortine C without the synthesis of a previously suggested intermediate and the involvement of RoqM. This leads to a branch in the otherwise linear pathway. Roquefortine C is subsequently converted into glandicoline B with glandicoline A as intermediates, involving two monooxygenases (RoqM and RoqO) which were mixed up in an earlier attempt to elucidate the biosynthetic pathway. Eventually, meleagrin is produced from glandicoline B involving a methyltransferase (RoqN). It is concluded that roquefortine C and meleagrin are derived from a branched biosynthetic pathway.