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. Here, EAF1 is linked to rheumatoid arthritis.