It remained inconclusive whether patients with peptic ulcer disease had a higher risk of head and neck cancer (HNC). Therefore, we enrolled 109,360 patients with peptic ulcer disease and matched for age and sex with 218,720 controls from the Taiwan National Health Insurance Research Database between January 1, 1997 and December 31, 2013.The HNC incidence rate was 1.33-fold higher in the peptic ulcer group than in the control group (7.52 vs. 5.68 per 100,00 person-years; crude relative risk: 1.33; 95% confidence interval [CI]: 1.08–1.63) after > 6 years of follow-up. However, in the peptic ulcer subgroup with H. pylori treatment, HNC risk was not significantly different from that of the control group (crude relative risk: 1.12; 95% CI: 0.86–1.46). Moreover, the population with peptic ulcers had the highest risk of laryngeal and hypopharyngeal cancer (adjusted HR: 2.27 [95% CI: 1.16–4.44] and 2.00 [95% CI, 1.13–3.55]), respectively. This observational study suggested that peptic ulcer disease is associated with an increased incidence of laryngeal and hypopharyngeal cancer and H. pylori treatment may have a role in preventing HNC in patients with peptic ulcer disease.