These results suggest that YTHDF2 and PELO are likely host factors that inhibit ASFV proliferation and exert a defensive role during viral infection. Here, YTHDF2 is linked to viral infectious disease.