Macrophage type 1 (M1) cells are associated with both acute kidney injury (AKI) during kidney transplantation and acute rejection (AR) after kidney transplantation. Our study explored M1-related biomarkers involved in both AKI and AR and their potential biological functions. Based on the Gene Expression Omnibus (GEO) database, the immune cell infiltration levels and differentially expressed genes were examined in AKI and AR in the kidney transplantation; M1-related genes shared in AKI and AR were identified using weighted gene co-expression analysis (WGCNA) system. Subsequently, protein-protein interaction (PPI) networks and machine learning methods to identify Hub genes and construct diagnostic models. Both AKI model and AR rat models were built to validate the expressions of Hub genes and test the injury phenotype, oxidative stress markers, and inflammatory factors. Finally, the transcription factor (TF)-Hub gene and micro-RNA (miRNA)-Hub gene regulatory networks were constructed based on identified Hub genes. Out of 2167 differential expression genes (DEGs) in AKI and 2100 DEGs in AR, four M1-related Hub genes were obtained by PPI networks and machine learning methods, namely GBP2, TYROBP, CCR5, and TLR8. The calibration curves in the nomogram diagnostic model for these four Hub genes suggested the same predictive probability as an ideal model for AKI and AR after kidney transplantation (AUC values of the area under the ROC curve were all >0.7). The same observations were confirmed in ischemia reperfusion injury (IRI) and AR rat models by identifying common four Hub genes (GBP2, TYROBP, TLR8, and CCR5). Western blots showed that these four Hub genes were significantly different in rat models of IRI and AR (all p<0.05). Compared with the control group, IRI and AR groups showed aggravated histopathological damage and increased secretion of oxidative stress markers and inflammatory factors in rat kidneys (all p<0.05). Finally, TF-Hub and miRNA-Hub gene regulatory networks were constructed to provide a theoretical basis for the regulation of Hub genes. We identified four macrophage M1-related Hub genes shared among AKI and AR after kidney transplantation. These genes may be considered for diagnosis of AKI and AR after kidney transplantation.