Gastroesophageal reflux disease (GERD) can contribute to the development of peptic ulcers. The backflow of stomach acid into the esophagus associated with GERD can irritate the stomach lining, potentially leading to the formation of ulcers. Treating GERD with medications and lifestyle modifications is important in managing and preventing peptic ulcers.