Objective To analyze the relation of low level viraemia (LLV) with diabetes mellitus in HIV infected individuals/AIDS patients (HIV/AIDS patients) receiving antiretroviral therapy (ART). Methods HIV/AIDS patients receiving ART in Guangxi from 2004 to 2023 were selected as the research subjects by employing the method of retrospective cohort study. The demographic characteristics and clinical characteristics of patients were collected. The occurrence states of diabetes mellitus during treatment were statistically analyzed, and HIV/AIDS patients were assigned to non⁃LLV group or LLV group according to the presence of LLV. The baseline data from the non⁃LLV and LLV groups were balanced by the propensity score matching. After the pre⁃ and post⁃propensity score matching, the Kaplan⁃Meier method was employed to draw risk curve of the occurrence of diabetes mellitus in the LLV and non⁃LLV groups, and univariate and multivariate analyses were performed by using the COX regression model. Results A total of 11 570 HIV/AIDS patients receiving ART were enrolled, therein there were 1002 cases in the LLV group, and 10 568 cases in the non⁃LLV group. A total of 1819 (15.7%) HIV/AIDS patients suffered from diabetes mellitus. After the propensity score matching, the risk curve revealed that the occurrence risk of diabetes mellitus in the LLV group was higher than that in the non⁃LLV group (P<0.05). Before and after the propensity score matching, the results of multivariate COX regression analysis indicated that LLV was the risk factor for the occurrence of diabetes mellitus in HIV/AIDS patients receiving ART (P<0.05), therein the risk of HIV/AIDS patients with LLV suffering from diabetes mellitus was 1.369 and 1.309 times higher than that of HIV/AIDS patients without LLV, respectively. Conclusion Among HIV/AIDS patients receiving ART, HIV/AIDS patients with LLV are more likely to suffer from diabetes mellitus compared with HIV/AIDS patients without LLV. It is suggested to pay attention to ART management of HIV/AIDS patients, strengthen blood glucose monitoring of LLV population, and timely intervene in patients with abnormal blood glucose, so as to reduce the occurrence of diabetes mellitus.