Helicobacter Pylori colonizes the human gastric epithelium and causes diseases such as gastritis, peptic ulcers, and stomach cancer. Undecaprenyl pyrophosphate synthase (UPPS), which catalyzes consecutive condensation reactions of farnesyl pyrophosphate with eight isopentenyl pyrophosphate to form lipid carrier for bacterial peptidoglycan biosynthesis, represents a potential target for developing new antibiotics. In this study, we solved the crystal structure of H. pylori UPPS and performed virtual screening of inhibitors from a library of 58,635 compounds. Two hits were found to exhibit differential activities against Helicobacter Pylori and Escherichia coli UPPS, giving the possibility of developing antibiotics specially targeting pathogenic H. pylori without killing the intestinal E. coli.