The standard course of treatment for ulcers brought on by H pylori is "triple therapy." This involves taking medication and two antibiotics. While the medication lessens the amount of acid your stomach produces, the antibiotics kill the germs.