Ulceration of the gastric mucosa due to contact with gastric juice. It is often associated with helicobacter pylori infection or consumption of nonsteroidal anti-inflammatory drugs (NSAIDS).