Hedyotisdiffusa Willd (HDW) possesses heat-clearing, detoxification, anti-cancer, and anti-inflammatory properties. However, its effects on rheumatoid arthritis (RA) remain under-researched. In this study, we identified potential targets of HDW and collected differentially expressed genes of RA from the GEO dataset GSE77298, leading to the construction of a drug-component-target-disease regulatory network. The intersecting genes underwent GO and KEGG analysis. A PPI protein interaction network was established in the STRING database. Through LASSO, RF, and SVM-RFE algorithms, we identified the core gene MMP9. Subsequent analyses, including ROC, GSEA enrichment, and immune cell infiltration, correlated core genes with RA. mRNA–miRNA–lncRNA regulatory networks were predicted using databases like TargetScan, miRTarBase, miRWalk, starBase, lncBase, and the GEO dataset GSE122616. Experimental verification in RA-FLS cells confirmed HDW’s regulatory impact on core genes and their ceRNA expression. We obtained 11 main active ingredients of HDW and 180 corresponding targets, 2150 RA-related genes, and 36 drug-disease intersection targets. The PPI network diagram and three machine learning methods screened to obtain MMP9, and further analysis showed that MMP9 had high diagnostic significance and was significantly correlated with the main infiltrated immune cells, and the molecular docking verification also showed that MMP9 and the main active components of HDW were well combined. Next, we predicted 6 miRNAs and 314 lncRNAs acting on MMP9, and two ceRNA regulatory axes were obtained according to the screening. Cellular assays indicated HDW inhibits RA-FLS cell proliferation and MMP9 protein expression dose-dependently, suggesting HDW might influence RA’s progression by regulating the MMP9/miR-204-5p/MIAT axis. This innovative analytical thinking provides guidance and reference for the future research on the ceRNA mechanism of traditional Chinese medicine in the treatment of RA.