Ulcers are open sores that develop on the lining of the stomach, small intestine, or esophagus, often caused by an infection with Helicobacter pylori or the long-term use of nonsteroidal anti-inflammatory drugs (NSAIDs). They can lead to serious complications like bleeding, perforation, and gastric obstruction if not properly treated.