The molecular basis of the ability of bacteria to live on caffeine via the C-8 oxidation pathway is unknown. The first step of this pathway, caffeine to trimethyluric acid (TMU), has been attributed to poorly characterized caffeine oxidases and a novel quinone-dependent caffeine dehydrogenase. Here, we report the detailed characterization of the second enzyme, a novel NADHdependent trimethyluric acid monooxygenase (TmuM), a flavoprotein that catalyzes the conversion of TMU to 1,3,7-trimethyl-5-hydroxyisourate (TM-HIU). This product spontaneously decomposes to racemic 3,6,8-trimethylallantoin (TMA). TmuM prefers trimethyluric acids and, to a lesser extent, dimethyluric acids as substrates, but it exhibits no activity on uric acid. Homology models of TmuM against uric acid oxidase HpxO (which catalyzes uric acid to 5-hydroxyisourate) reveal a much bigger and hydrophobic cavity to accommodate the larger substrates. Genes involved in the caffeine C-8 oxidation pathway are located in a 25.2-kb genomic DNA fragment of CBB1, including cdhABC (coding for caffeine dehydrogenase) and tmuM (coding for TmuM).