Classical swine fever remains one of the most economically important viral diseases of domestic pigs and wild boar worldwide. dihydroorotate dehydrogenase (DHODH) inhibitors have been shown to suppress the replication of several viruses in vitro and in vivo, but the effects on Pestivirus remain unknown. In this study, three specific DHODH inhibitors, including DHODH-IN-16, BAY-2402234, and Brequinar were found to strongly suppress classical swine fever virus (CSFV) replication. These inhibitors target the host DHODH, depleting the pyrimidine nucleotide pool to exert their antiviral effects. Intriguingly, we observed that the non-structural protein 4A of CSFV induced DHODH to accumulate around the nucleus in conjunction with mitochondria. Moreover, NS4A exhibited a strong interaction with DHODH, enhancing its activity to promote efficient CSFV replication. In conclusion, our findings enhance the understanding of the pyrimidine synthesis in CSFV infection and expand the novel functions of CSFV NS4A in viral replication, providing a reference for further exploration of antiviral targets against CSFV.