A gastric ulcer is an open sore that develops in the lining of the stomach, typically caused by infection with H. pylori bacteria or prolonged use of nonsteroidal anti-inflammatory drugs. It causes abdominal pain, nausea, and can lead to bleeding if left untreated.