Blood urea nitrogen (BUN) is an indicator of renal function and catabolic status in human body. Diabetic retinopathy (DR) is a major microvascular complication of diabetes mellitus (DM) and a serious threat to the vision of diabetic patients. We included 426 type 2 diabetic patients who visited the endocrinology department of Guangdong Provincial People’s Hospital and received an ophthalmology consultation from December 2017 to November 2018. The outcome was the probability of DR in participants. Multivariable logistics analysis was used to confirm the relationship between BUN and the probability of DR. And interaction tests were conducted to find the effects of DM duration on their association. A total of 167 of 426 patients with type 2 diabetes had DR, with a probability of 39.20%. After adjusting for potential confounders, a positive association between BUN and the probability of DR (OR = 1.12; 95% CI 1.03–1.21; P = 0.0107). And a test for interaction between DM duration and BUN on the probability of DR was significant (P = 0.0295). We suggested that in patients with type 2 diabetes, BUN was positively associated with the probability of DR and the association was influenced by DM duration.