Gastric ulcers, also known as peptic ulcers, are sores that develop on the lining of the stomach. These ulcers occur when the protective mucous layer of the stomach becomes weakened or damaged, allowing the acidic digestive juices to erode the underlying tissue.