Peptic ulcers are open sores that develop on the inner lining of the stomach, upper small intestine, or esophagus. These ulcers are caused by the erosion of the protective mucus layer, which leads to exposure of the underlying tissues to stomach acids.