African swine fever virus (ASFV) is a double-stranded DNA arbovirus with high transmissibility and mortality rates. It has caused immense economic losses to the global pig industry. Currently, no effective vaccines or medications are to combat ASFV infection. G-quadruplex (G4) structures have attracted increasing interest because of their regulatory role in vital biological processes. In this study, we identified a conserved G-rich sequence within the E165R gene of ASFV. Subsequently, using various methods, we verified that this sequence could fold into a parallel G-quadruplex (G4). In addition, the G4-stabilizers pyridostatin (PDS) and 5,10,15,20-tetrakis-(N-methyl-4-pyridyl) porphin (TMPyP4) can bind and stabilize this G4 structure, thereby inhibiting E165R gene expression, and the inhibitory effect is associated with G4 formation. Moreover, the G4 ligand PDS substantially impeded ASFV proliferation in Vero cells by reducing gene copy number and viral protein expression. These compelling findings suggest that G4 structures may represent a promising and novel antiviral target against ASFV.