A peptic ulcer is a sore in the lining of your stomach or duodenum. The duodenum is the first part of your small intestine. Peptic ulcers may also develop in the esophagus.