Helicobacter pylori possesses a gene (HP0326/JHP309) homologous to neuA of other bacteria, encoding a cytidyl monophosphate-N-acetylneuraminic acid synthetase-homologous enzyme in its N-terminal portion. We analysed the function of this gene, which is controlled by a flagellar class 2 sigma(54) promoter, in flagellar biosynthesis. HP0326/JHP309 actually represents a bicistronic operon consisting of a neuA and a flmD-like putative glycosyl transferase gene. An isogenic flmD mutant synthesized basal bodies but no filaments, was non-motile, and expressed severely reduced amounts of a FlaA flagellin of reduced molecular mass. FlaA flagellin was found to be glycosylated in its exported form within the flagellar filament, but not inside the cytoplasm. Glycosylated FlaA was not detectable in the flmD mutant. Together with other genes in the H. pylori genome, a proposed function of the neuA/flmD gene products could be to provide a pathway for glycosylation of flagellin and other extracytoplasmic molecules during type III secretion.