The a priori risk for infections in patients with myelodysplastic syndromes (MDS) is unknown. This study examines prescription rates of anti-infective agents in MDS patients before and after diagnosis, in both in-and outpatient settings, to provide information on infection management in clinical practice.We performed a population-based study using the HemoBase registry, containing data of all MDS patients diagnosed since 2005 in Friesland, the Netherlands. Community and hospital pharmacies provided prescription data from 1995 to 2020.Data were obtained for 203 of 292 patients (70%). Patients received significantly more anti-infective agents, predominantly antibacterials (70%), after diagnosis compared to before: 148.7 defined daily dose/1000 days (DID) (95% CI: 146.9-150.5) and 55.1 DID (95% CI: 54.5-55.8, p < 0.01), respectively, corresponding to median 23.5 and 7.6 treatment days/year. Higher-risk (449.9 DID) and lower-risk patients (129.1 DID) both received significantly more anti-infective agents after diagnosis; comorbidities, neutropenia, and age did not show significant differences relative to prescription rates.Before diagnosis, 10% of patients had infection-related hospital admissions versus 38% after diagnosis.In conclusion, MDS patients received significantly more anti-infective agents compared to before diagnosis. This is the first study that has quantified the prescription rate of anti-infective agents within and beyond the clinical setting in MDS.