Pseudorabies virus (PRV) is an important viral pathogen of pigs that causes huge losses in pig herds worldwide. Ivermectin is a specific inhibitor of importin-α/β-dependent nuclear transport and shows antiviral potential against several RNA viruses by blocking the nuclear localization of viral proteins. Since the replication of DNA viruses is in the nucleus, ivermectin may be functional against DNA virus infections if the DNA polymerase or other important viral proteins enter the nucleus via the importin-α/β-mediated pathway. Here, we determined whether ivermectin suppresses PRV replication in hamster kidney BHK-21 cells and investigated the effect of ivermectin on the subcellular localization of the PRV UL42 protein, the accessory subunit of PRV DNA polymerase. Also, an in vivo anti-PRV assay was conducted in mice. Our data demonstrate that ivermectin treatment inhibits PRV infection in cells in a dose-dependent manner. Treatment of PRV-infected cells with ivermectin significantly suppressed viral DNA synthesis and progeny virus production. Ivermectin disrupted the nuclear localization of UL42 by targeting the nuclear localization signal of the protein in transfected cells. Ivermectin treatment increased the survival rates of mice infected with PRV and relieved infection as indicated by lower clinical scores and fewer gross lesions in the brain. Together, our results suggest that ivermectin may be a therapeutic or preventative agent against PRV infection.