Flocculosin is an antifungal cellobiose lipid linked to the biocontrol activity of Pseudozyma flocculosa and whose structure is very similar to that of ustilagic acid produced by Ustilago maydis. In this work, homologs of the U. maydis cyp1 gene, involved in the biosynthesis of ustilagic acid, were isolated and sequenced from P. flocculosa and P. fusiformata, the latter species being also known to produce ustilagic acid. Interestingly, no homologs were found in four other closely related Pseudozyma spp. from which no evidence of ustilagic acid production has ever been obtained, thus supporting the specificity of cyp1 with ustilagic acid synthesis. In addition, a homolog of the U. maydis uat1 gene involved in the acetylation of the molecule and located next to the cyp1 gene was partially sequenced from P. flocculosa. All three newly sequenced genes showed strong sequence similarity to their counterparts in U. maydis. Cyp1 expression was monitored in conditions that were either conducive or repressive to flocculosin production. Expression increased markedly (>100×) when P. flocculosa was inoculated in a growth medium conducive to flocculosin production but was rapidly downregulated in a repressive medium (in vitro) or on powdery mildew-infected cucumber leaves (in vivo). This suggests that the molecule was preferentially synthesized early in the process of searching for a growth substrate. This study provides the first identification of genes involved in the production of flocculosin, a molecule potentially associated with the biocontrol properties of P. flocculosa.