Immune cell infiltration (ICI) plays a pivotal role in the development of diabetic nephropathy (DN). Evidence suggests that immune-related genes play an important role in the initiation of inflammation and the recruitment of immune cells. However, the underlying mechanisms and immunerelated biomarkers in DN have not been elucidated. Therefore, this study aimed to explore immune-related biomarkers in DN and the underlying mechanisms using bioinformatic approaches. In this study, four DN glomerular datasets were downloaded, merged, and divided into training and test cohorts. First, we identified 55 differentially expressed immune-related genes; their biological functions were mainly enriched in leukocyte chemotaxis and neutrophil migration. The CIBERSORT algorithm was then used to evaluate the infiltrated immune cells; macrophages M1/M2, T cells CD8, and resting mast cells were strongly associated with DN. The ICI-related gene modules as well as 25 candidate hub genes were identified to construct a protein-protein interactive network and conduct molecular complex detection using the GOSemSim algorithm. Consequently, FN1, C3, and VEGFC were identified as immune-related biomarkers in DN, and a related transcription factor-miRNA-target network was constructed. Receiver operating characteristic curve analysis was estimated in the test cohort; FN1 and C3 had large area under the curve values (0.837 and 0.824, respectively). Clinical validation showed that FN1 and C3 were negatively related to the glomerular filtration rate in patients with DN. Six potential therapeutic small molecule compounds, such as calyculin, phenamil, and clofazimine, were discovered in the connectivity map. In conclusion, FN1 and C3 are immune-related biomarkers of DN.