Herein, we show that PAC5 is the first small-molecule agonist of hnRNPA2B1 for the inhibition of viral infection. Here, HNRNPA2B1 is linked to viral infectious disease.