Abstract Background The correlation between diabetes and cognitive frailty is still controversial. The purpose of this study was to explore the related factors of cognitive frailty in older adults with type 2 diabetes, and to provide new ideas for realising healthy ageing of diabetic patients. Methods The survey was conducted at Mianyang Central Hospital affiliated to University of Electronic Science and Technology of China from January 15 to June 30, 2024. The subjects were older adults with type 2 diabetes aged 60 years or older. Cognitive frailty was assessed using Fried's phenotype and Mini‐Mental State Examination. Statistical analysis and plotting were conducted using SPSS 25.0 and R 4.3.3. Least absolute shrinkage and selection operator (LASSO) regression was used to reduce the dimensionality of 30 clinical features collected, and the unimportant factors were initially screened out. The important factors with non‐zero coefficients identified by LASSO regression were included in a multivariate logistic regression analysis to explore the factors influencing cognitive frailty in older diabetic patients. Results This study included 301 older persons with type 2 diabetes. Among them, 91 (30.2%) cases of cognitive frailty occurred. Related factors for cognitive frailty in older adults with type 2 diabetes include: age (odds ratio (OR) = 6.417, 95% CI: 1.882−21.876, P = 0.003), hypomnesia (OR = 2,985, 95%CI: 1.143−7.797, P = 0.026), depression (OR = 9.926, 95%CI: 4.117−23.934, P < 0.001), diabetic retinopathy (OR = 6.489, 95%CI: 1.969−21.384, P = 0.002), history of diabetic ketoacidosis (OR = 12.024, 95%CI: 1.724−83.872, P = 0.012). Conclusion The prevalence of cognitive frailty in older persons with type 2 diabetes mellitus was higher. It was closely related to age, hypomnesia, depression, diabetic retinopathy and history of diabetic ketoacidosis. Early detection of the risk and effective intervention can reduce the incidence of adverse events and improve the quality of life of patients.