A time-stratified case-crossover study design was used. Adults presenting to hospitals with their first UGIB secondary to PUD from 2004-2010 were identified using administrative databases from Calgary (n = 1374; discovery cohort) and Edmonton (n = 1159; replication cohort). Daily concentrations of ozone, nitrogen dioxide, sulfur dioxide, carbon monoxide, and particulate matter (PM10 and PM2.5) were estimated in these two cities. Conditional logistic regression models were employed, adjusting for temperature and humidity. Odds ratios (OR) with 95 % confidence intervals (CI) were expressed relative to an interquartile range increase in the concentration of each pollutant.