Porcine reproductive and respiratory syndrome virus (PRRSV) infection has caused huge economic losses in global swine industry over the last 37 years. PRRSV commercial vaccines are not effective against all epidemic PRRSV strains. In this study we performed a high-throughput screening (HTS) of an FDA-approved drug library, which contained 2339 compounds, and found vidofludimus (Vi) could significantly inhibits PRRSV replication in Marc-145 cells and primary porcine alveolar macrophages (PAMs). Compounds target prediction, molecular docking analysis, and target protein interference assay showed that Vi interacts with dihydroorotate dehydrogenase (DHODH), a rate-limiting enzyme in the de novo pyrimidine synthesis pathway. Furthermore, PRRSV infection was restored in the presence of excess uridine and cytidine which promote pyrimidine salvage, or excess orotate which is the product of DHODH in the de novo pyrimidine biosynthesis pathway, thus confirming that the antiviral effect of Vi against PRRSV relies on the inhibition of DHODH. In addition, Vi also has antiviral activity against Seneca virus A (SVA), encephalomyocarditis virus (EMCV), porcine epidemic diarrhea virus (PEDV), and pseudorabies virus (PRV) in vitro. These findings should be helpful for developing a novel prophylactic and therapeutic strategy against PRRSV and other swine viral infections.