In the present study, older age and CD4+ T‐lymphocyte count lower than 200 cells/mm3 were associated with fibrosis and type 2 diabetes showed a trend towards statistical significance, whereas duration of HIV infection, cumulative use of ART and metabolic syndrome were not. This evidence concerns the gene CD4 and type 2 diabetes mellitus.