An ulcer is a lesion in the wall of the stomach or intestine, caused by digestive fluids such as stomach acid and pepsin, characterized by tissue loss.