Most peptic ulcers are caused by bacteria that cause infection, known as Helicobacter pylori or H. pylori. H. Pylori may be spread through unclean food or water, or by mouth-to-mouth contact such as kissing. But many people who have an H. pylori infection never develop an ulcer.