Despite the known association between microorganisms and development of inflammatory bowel disease (IBD), the role of nontyphoidal Salmonella (NTS) in IBD is not adequately addressed. We aimed at elucidating the relationship between NTS infection and the risk of IBD. Based on the National Health Insurance Research Database in Taiwan, this retrospective cohort study enrolled patients with NTS infection (exposure group; n = 4651) and those without NTS infection (comparator group; n = 4651) who were propensity score matched (1:1) by demographic data, medications, comorbidities, and index date. All patients were followed until IBD onset, individual mortality, or December 31, 2018. Cox proportional hazards regression analysis was performed to determine the hazard ratios and 95% confidence intervals (CIs). Sensitivity analyses were used for cross-validation. The NTS group demonstrated an increased risk of IBD compared with the non-NTS groups (adjusted hazard ratio [aHR], 2.12; 95% CI, 1.62-2.78) with a higher risk of developing ulcerative colitis in the former (aHR, 2.27; 95% CI, 1.69-3.04). Nevertheless, the small sample size may contribute to lack of significant difference in Crohn's disease. Consistent findings were noted after excluding IBD diagnosed within 6 months of NTS infection (aHR, 2.28; 95% CI, 1.71-3.03), excluding those with enteritis/colitis before index date (aHR, 1.85; 95% CI, 1.28-2.68), excluding those using antibiotics for 1 month in the year before IBD onset (aHR, 1.81; 95% CI, 1.34-2.45), inverse probability of treatment weighting (aHR, 1.64; 95% CI, 1.31-2.04), and inclusion of individuals regardless of age (n = 10 431; aHR, 1.83; 95% CI, 1.53-2.19). Patients with NTS were associated with an increased risk of developing IBD, especially ulcerative colitis.