The study aimed to identify diseases that exhibit significant differences between hyperuricaemia (HUA) and non-hyperuricaemia (NHUA) groups and analyse the risk factors for HUA based on the related diseases in type 2 diabetes mellitus (T2DM). Methods: A total of 3264 T2DM patients were investigated from 2013 to 2017 in the Jinyang and Sanlin communities by obtaining basic data from the electronic medical record system (EMRS). From September 2018 to July 2019, 3000 patients (264 patients were missing during follow-up) were investigated with questionnaires, physical examinations and biochemical index tests. After removing missing values, 2899 patients were divided into HUA and NHUA groups. The chi-square test was used to identify diseases with differences. Using Lasso analysis and logistic regression analysis, risk factors for HUA based on the related diseases were obtained. The C-index, receiver operating characteristic (ROC) curve and calibration plot were used to validate the discrimination and accuracy of the factors. Results: The chi-square test showed that there were significant differences in coronary heart disease (CHD) and diabetic nephropathy (DN) between the HUA group and the NHUA group. Through Lasso regression, glycosylated haemoglobin A1c (HbA1c), triglyceride (TG), blood urea nitrogen (BUN) and serum creatinine (SCR) were screened in the CHD group. Body mass index (BMI), HbA1c, total cholesterol (TC), TG, BUN, SCR and urine microalbumin (UMA) were screened in the DN group. The P-value of all the variables was less than 0.05. Through the C-index, calibration, and ROC curve analyses, these risk factors had medium accuracy. Conclusion: HUA was significantly related to CHD and DN. The level of UA was correlated with HbA1c, TG, BUN, and SCR based on CHD. The level of UA was associated with BMI, HbA1c, TC, TG, BUN, SCR, and UMA based on DN.