Background and Purpose: The continuous accumulation of M2 macrophages may potentially contribute to the development of kidney fibrosis in chronic kidney disease (CKD). The purpose of this study was to analyze the infiltration of M2 macrophages in uremic patients and to seek new strategies to slow down the progression of renal fibrosis. Methods: We conducted a comprehensive search for expression data pertaining to uremic samples within the Gene Expression Omnibus (GEO) database, encompassing the time frame from 2010 to 2022. Control and uremic differentially expressed genes (DEGs) were identified. Immune cell infiltration was investigated by CIBERSORT and modules associated with M2 macrophage infiltration were identified by weighted gene coexpression network analysis (WGCNA). Consistent genes were identified using the least absolute shrinkage and selection operator (LASSO) and selection and visualization of the most relevant features (SVM-RFE) methods to search for overlapping genes. Receiver operating characteristic (ROC) curves were examined for the diagnostic value of candidate genes. Quantitative real-time PCR (qPCR) examined the expression levels of candidate genes obtained from uremic patients in M2 macrophage. Results: A total of 1298 DEGs were identified within the GSE37171 dataset. Significant enrichment of DEGs was observed in 20 biological processes (BP), 19 cellular components (CC), 6 molecular functions (MF), and 70 Kyoto Encyclopedia of Genes and Genomes (KEGG) pathways. CIBERSORT analysis observed a significant increase in B-cell memory, dendritic cell activation, M0, M1, M2, and plasma cell numbers in uremic samples. We identified the 10 most interrelated genes. In particular, adenomatous polyposis coli (APC) and zinc finger and BTB structural domain 2 (ZBTB2) were adversely associated with the infiltration of M2 macrophages. Importantly, the expression levels of APC and ZBTB2 were far lower in M2 macrophages from uremic patients than those in healthy individuals. Conclusion: The development of renal fibrosis may be the result of M2 macrophage infiltration promoted by APC and ZBTB2.