DOCK2, SLC1A3, SOX9, and TARP were identified as potential diagnostic genes for renal fibrosis, and the most relevant immune cells were identified. This evidence concerns the gene SOX9 and renal fibrosis.