A gastric ulcer is a break in the stomach lining, often caused by an imbalance of stomach acid production and protective factors, such as mucus. This condition can lead to pain, discomfort, and other gastrointestinal symptoms.