Peptic ulcers are open sores that develop on the inner lining of the stomach, upper small intestine, or esophagus. They are primarily caused by infection with Helicobacter pylori bacteria and the long-term use of nonsteroidal anti-inflammatory drugs (NSAIDs). Symptoms often include burning stomach pain, bloating, heartburn, and in severe cases, bleeding.