A stomach ulcer is caused by an imbalance between acid and pepsin secretion. This animation illustrates how they appear in the stomach.