Lipopolysaccharide (LPS) is a major component on the surface of Gram negative bacteria and is composed of lipid A-core and the O antigen polysaccharide. O polysaccharides of the gastric pathogen Helicobacter pylori contain Lewis antigens, mimicking glycan structures produced by human cells. The interaction of Lewis antigens with human dendritic cells induces a modulation of the immune response, contributing to the H. pylori virulence. The amount and position of Lewis antigens in the LPS varies among H. pylori isolates, indicating an adaptation to the host. In contrast to most bacteria, the genes for H. pylori O antigen biosynthesis are spread throughout the chromosome, which likely contributed to the fact that the LPS assembly pathway remained uncharacterized. In this study, two enzymes typically involved in LPS biosynthesis were found encoded in the H. pylori genome; the initiating glycosyltransferase WecA, and the O antigen ligase WaaL. Fluorescence microscopy and analysis of LPS from H. pylori mutants revealed that WecA and WaaL are involved in LPS production. Activity of WecA was additionally demonstrated with complementation experiments in Escherichia coli. WaaL ligase activity was shown in vitro. Analysis of the H. pylori genome failed to detect a flippase typically involved in O antigen synthesis. Instead, we identified a homolog of a flippase involved in protein N-glycosylation in other bacteria, although this pathway is not present in H. pylori. This flippase named Wzk was essential for O antigen display in H. pylori and was able to transport various glycans in E. coli. Whereas the O antigen mutants showed normal swimming motility and injection of the toxin CagA into host cells, the uptake of DNA seemed to be affected. We conclude that H. pylori uses a novel LPS biosynthetic pathway, evolutionarily connected to bacterial protein N-glycosylation.