Background A large number of studies have shown that proton pump inhibitors (PPIs) are associated with infection events. Therefore, we retrospectively evaluated the association of PPI therapy with the occurrence of first pneumonia and peritoneal dialysis(PD)-related peritonitis events in the maintenance PD patients.Methods We collected PD patients in two large hospitals from January 1, 2012 to December 31, 2016, and divided them into the PPI group and the non-PPI group. Multivariate Cox proportional hazards models were applied to evaluate the cumulative incidence and hazard ratios (HRs). Inverse probability of treatment weight (IPTW) method was used to adjust for covariate imbalance between the two groups and further confirm our findings.Results Finally, 656 PD patients were included for data analysis, and the results showed that PPI usage was associated with an increased risk of pneumonia [HR 1.71; 95% CI 1.06-2.76; p = 0.027] and peritonitis [HR 1.73; 95% CI 1.24-2.40; p = 0.001]. IPTW-adjusted HRs for the association of PPIs with pneumonia and peritonitis were 1.58 (95% CI:1.18-2.12; p = 0.002) and 2.33 (95% CI:1.91-2.85; p < 0.001), respectively. Moreover, the competitive risk model proved that under the conditions of competition for other events(including transfer to hemodialysis therapy, kidney transplant, transfer from our research center, loss to follow-up, and death), the differences in endpoints events between the two groups were still statistically significant (p = 0.009, p < 0.001, respectively).Conclusions PPIs was associated with an increased risk of first pneumonia and PD-related peritonitis events in PD patients, which reminds clinicians to be cautious when prescribing acid-suppressing drugs for PD patients.