Gastric ulcers, also known as stomach ulcers, are sores that develop on the lining of the stomach. These ulcers are a type of peptic ulcer disease, which encompasses both gastric and duodenal ulcers. They occur when the protective lining of the stomach becomes eroded, often due to excessive stomach acid or infection by Helicobacter pylori.