MauG is a diheme enzyme responsible for the posttranslational modification of two tryptophan residues to form the tryptophan tryptophylquinone (TTQ) cofactor of methylamine dehydrogenase (MADH MauG converts preMADH, containing monohydroxylated βTrp57, to fully functional MADH by catalyzing the insertion of a second oxygen atom into the indole ring and covalently linking βTrp57 to βTrp108. We have solved the x-ray crystal structure of MauG complexed with preMADH to 2.1 angstroms. The c-type heme irons and the nascent TTQ site are separated by long distances over which electron transfer must occur to achieve catalysis. In addition, one of the hemes has an atypical His-Tyr axial ligation. The crystalline protein complex is catalytically competent; upon addition of hydrogen peroxide, MauG-dependent TTQ synthesis occurs.