A stomach ulcer is usually caused by an infection with a germ (bacteria) called Helicobacter pylori (H. pylori). A course of 4 to 8 weeks of acid inhibitor drugs allow the ulcer to heal. In addition, a one-week course of two antibiotics plus an acid-suppressing drug usually eliminate the infection by H. pylori. This usually prevents the ulcer again (recurring) again. Anti-inflammatory drugs used to treat diseases such as arthritis, sometimes cause stomach ulcers. If it is necessary to continue the anti-inflammatory medication then you may need to take acid inhibiting drugs long term.
Understanding your gut and digestion
Food passes through the throat (esophagus) into the stomach. The stomach produces acid which is not essential, but it helps digest food. After being mixed in the stomach, food passes to the first part of the small intestine (the duodenum). In the duodenum and the rest of the small intestine, the food is mixed with chemicals called enzymes. The enzymes come from the pancreas and cells lining the intestine. The enzymes break down (digest) the food which is taken up (absorbed) in the body.