Ulcers that occur in the stomach or small intestines are known as a peptic ulcers. A peptic ulcer in the stomach is also called a gastric ulcer. Ulcers may be caused by lifestyle factors like diet and stress, or an excess amount of stomach acids. However, the majority are caused by an infection caused by the bacterium Helicobacter pylori (H. pylori).