Porcine epidemic diarrhea virus (PEDV) is an alphacoronavirus that causes acute inflammation and severe diarrhea in newborn piglets with a high mortality rate. Given that cholesterol is required for coronavirus infection in vitro, the role of endogenous cholesterol metabolism in regulating coronavirus infection and the mechanism behind it ought to be elucidated. In this study, we found that the levels of cholesterol and bile acids were both elevated in the livers of PEDV-infected piglets compared to those of the control group. Consistently, in the livers of PEDV-infected piglets, the expression of key genes involved in cholesterol metabolism was significantly increased. Transcriptomic analysis indicated that the cholesterol homeostasis pathway was among the most enriched pathways in the livers of PEDV-infected piglets. Unexpectedly, the expression of key genes in the cholesterol metabolic pathway was downregulated at the messenger RNA (mRNA) level, but upregulated at the protein level. While the primary transcriptional factors (TFs) of cholesterol metabolism, including SREBP2 and FXR, were upregulated at both mRNA and protein levels in response to PEDV infection. Further Chromatin Immunoprecipitation Quantitative Real-time PCR (ChIP-qPCR) analysis demonstrated that the binding of these TFs to the locus of key genes in the cholesterol metabolic pathway was remarkably inhibited by PEDV infection. It was also observed that the occupancies of histone H3K27ac and H3K4me1, at the locus of the cholesterol metabolic genes HMGCR and HMGCS1, in the livers of PEDV-infected piglets, were suppressed. Together, the PEDV triggers an aberrant regulation of cholesterol metabolic genes via epigenetic inhibition of SREBP2/FXR-mediated transcription, which provides a novel antiviral target against PEDV and other coronaviruses.