The Fdc1 protein from Aspergillus niger (which is homologous to the UbiD enzyme) uses a new prenylated flavin cofactor to achieve 1,3-dipolar cycloaddition chemistry and catalyse the reversible decarboxylation of aromatic carboxylic acids. A pair of manuscripts published this week [in this issue of Nature] describes detailed studies of the structure and mechanism of the enzymes UbiD and UbiX that together are responsible for non-oxidative reversible decarboxylation of aromatic substrates, and play a pivotal role in bacterial ubiquinone biosynthesis and microbial biodegradation of aromatic compounds. Mark White et al. show that UbiX is a flavin prenyltransferase, catalysing the covalent attachment of a fourth ring (the dimethylallyl group) to the N5 and C6 atoms of the three-ring riboflavin system. The unusual flavin-derived cofactor synthesized by UbiX is then used by UbiD, a decarboxylase, in the next step of the ubiquinone biosynthetic pathway. Karl Payne et al. show that the Fdc protein from Aspergillus niger (which is homologous to UbiD) uses 1,3-dipolar cycloaddition chemistry to catalyse the reversible decarboxylation of aromatic carboxylic acids. This is the first example of an enzyme-catalysed 1,3-dipolar cycloaddition reaction. The bacterial ubiD and ubiX or the homologous fungal fdc1 and pad1 genes have been implicated in the non-oxidative reversible decarboxylation of aromatic substrates, and play a pivotal role in bacterial ubiquinone (also known as coenzyme Q) biosynthesis1,2,3 or microbial biodegradation of aromatic compounds4,5,6, respectively. Despite biochemical studies on individual gene products, the composition and cofactor requirement of the enzyme responsible for in vivo decarboxylase activity remained unclear7,8,9. Here we show that Fdc1 is solely responsible for the reversible decarboxylase activity, and that it requires a new type of cofactor: a prenylated flavin synthesized by the associated UbiX/Pad110. Atomic resolution crystal structures reveal that two distinct isomers of the oxidized cofactor can be observed, an isoalloxazine N5-iminium adduct and a N5 secondary ketimine species with markedly altered ring structure, both having azomethine ylide character. Substrate binding positions the dipolarophile enoic acid group directly above the azomethine ylide group. The structure of a covalent inhibitor–cofactor adduct suggests that 1,3-dipolar cycloaddition chemistry supports reversible decarboxylation in these enzymes. Although 1,3-dipolar cycloaddition is commonly used in organic chemistry11,12, we propose that this presents the first example, to our knowledge, of an enzymatic 1,3-dipolar cycloaddition reaction. Our model for Fdc1/UbiD catalysis offers new routes in alkene hydrocarbon production or aryl (de)carboxylation.