A peptic ulcer is an ulcer of the stomach or duodenum. The duodenum is the first part of the small intestines. It is the tube that food goes through when it leaves the stomach. "Peptic" means talking about the stomach.