Aim: Vitamin D plays a vital role in Rheumatoid arthritis (RA). However, the mechanism of vitamin D and rheumatism is still unclear. Therefore, a strategy based on network pharmacology and molecular docking was used to explore the mechanism of vitamin D and RA.Methods: The targets of RA were obtained from the GeneCards database and Therapeutic Targets Database, and the targets of vitamin D were obtained from the Drugbank database and STITCH database. Next, overlapping genes were identified by Venny, and further Gene ontology (GO), Kyoto Encyclopedia of Genes and Genomes (KEGG), and molecular docking analyses were performed.Results: A total of 1,139 targets of RA and 201 targets of vitamin D were obtained. A total of 76 overlapping genes were identified by Venny. The enrichment analysis showed that cell proliferation, immune response, and apoptotic process were the critical biological processes of vitamin D in treating RA. Antifolate resistance, osteoclast differentiation, and the nuclear factor-kappa B (NF-κB) signalling pathway are fundamental mechanisms of vitamin D in treating RA. According to further molecular docking, ALB, TNF, CASP3, and TP53 may be important punctuation points or diagnostic markers for future RA treatment.Conclusion: By analysing overlapping genes of diseases and drugs, this study confirmed that ALB, TNF, CASP3, and TP53 may be essential markers or diagnostic markers for future RA treatment.