Peptic ulcers are open sores that form on the inner lining of the stomach and the uppermost section of the small intestine. These sores, also known as gastric or duodenal ulcers depending on their location, cause stomach pain as their most prominent symptom.