c Escherichia coli displays O antigens on the outer membrane that play an important role in bacterial interactions with the environment. The O antigens of enterohemorrhagic E. coli O104 and O5 contain a Gal1-3GalNAc disaccharide at the reducing end of the repeating unit. Several other O antigens contain this disaccharide, which is identical to the mammalian O-glycan core 1 or the cancer-associated Thomsen-Friedenreich (TF) antigen. We identified the wbwC genes responsible for the synthesis of the disaccharide in E. coli serotypes O104 and O5. To functionally characterize WbwC, an acceptor substrate analog, GalNAc␣-diphosphate-phenylundecyl, was synthesized. WbwC reaction products were isolated by high-pressure liquid chromatography and analyzed by mass spectrometry, nuclear magnetic resonance, galactosidase and O-glycanase digestion, and anti-TF antibody. The results clearly showed that the Gal1-3GalNAc␣ linkage was synthesized, confirming WbwC ECO104 and WbwC ECO5 as UDP-Gal:GalNAc␣-diphosphate-lipid 1,3-Gal-transferases. Sequence analysis revealed a conserved DxDD motif, and mutagenesis showed the importance of these Asp residues in catalysis. The purified enzymes require divalent cations (Mn 2؉ ) for activity and are specific for UDP-Gal and GalNAc-diphosphate lipid substrates. WbwC was inhibited by bis-imidazolium salts having aliphatic chains of 18 to 22 carbons. This work will help to elucidate mechanisms of polysaccharide synthesis in pathogenic bacteria and provide technology for vaccine synthesis.