Four common differential infiltrating immune cells (B cells, CD4+ T cells, regulatory T cells, and M2 macrophages) between T2DM and AS datasets were selected based on immune cell infiltration. This evidence concerns the gene CD4 and type 2 diabetes mellitus.