There are needs to evaluate the risk factors for urinary infection after retrograde upper urinary lithotripsy, to provide insights into the management and nursing care of patients with retrograde upper urinary lithotripsy.Patients who received retrograde upper urinary lithotripsy with a Foley 20 urinary tube insertion from June 1, 2019 to December 31, 2020 in our hospital were selected. Patients were grouped urinary infection and no infection group according to the culture results of urine, and the clinical data of the 2 groups of patients were collected and compared. Single factor and logistic regression analysis were used to analyze the risk factors of urinary tract infection after retrograde upper urinary lithotripsy.Four hundred ten patients with retrograde upper urinary lithotripsy were included, of whom 62 patients had the urinary tract infection, the incidence of urinary tract infection was 15.12%. There were significant differences in the gender, age, diabetes, stone diameter, duration of urinary tube insertion and duration of surgery between infection and no-infection group (all P < .05). The Escherichia coli (62.90%) was the most commonly seen bacterial in patients with urinary tract infection. Female (odds ratio [OR]: 1.602, 95% confidence interval 95% [CI]: 1.132∼2.472), age >50 years (OR: 2.247, 95% CI: 1.346∼3.244), diabetes (OR: 2.228, 95% CI: 1.033∼3.451), stone diameter ≥2 cm (OR: 2.152, 95% CI: 1.395∼3.099), duration of urinary tube insertion ≥3 days (OR: 1.942, 95% CI:1.158∼2.632), duration of surgery ≥90 minutes (OR: 2.128, 95% CI: 1.104∼3.846) were the independent risk factors for the postoperative urinary tract infection in patients with retrograde upper urinary lithotripsy (all P < .05).The incidence of urinary tract infection in patients undergoing retrograde upper urinary lithotripsy was high, counteractive measures targeted on those risk factors are needed to prevent and reduce the postoperative urinary infection in clinical settings.