The results indicate a strong association between CAD and the prevalence of CD8+ T and NK cells, also suggest the risk of T2DM combined with CAD, providing insights for targeted treatment and control. Here, CD8A is linked to type 2 diabetes mellitus.