Ulcers are crater-like lesions that develop on the lining of the stomach or intestines. The most common type, peptic ulcers, are usually caused by H. pylori bacteria or long-term use of NSAIDs like aspirin. Symptoms include a burning stomach pain that is relieved by eating. Doctors perform tests like upper endoscopy to diagnose ulcers and treat them with antibiotics, proton pump inhibitors, and antacids to reduce acid and allow healing. Prevention focuses on hand washing, exercise, and avoiding smoking or excess alcohol.