According to the immune infiltrating analysis, four differential immune cells (M2 macrophages, CD4+ T cells, B cells, and Tregs) regulated by C1QA, CCR5, and MSR1 may participate in the pathological process of T2DM complicated with AS. Here, C1QA is linked to type 2 diabetes mellitus.