In conclusion, we used bioinformatics analysis and machine learning to screen three hub genes shared by RA and MDD, including EAF1, SDCBP and RNF19B, which may help to explain the potential molecular mechanism by which RA and MDD increase the morbidity of each other. This evidence concerns the gene SDCBP and major depressive disorder.