Glycyrrhiza polysaccharide (GCP) is a natural plant active polysaccharide extracted from traditional Chinese medicine licorice. In this research, we studied the antiviral activity of glycyrrhiza polysaccharide against porcine reproductive and respiratory syndrome virus (PRRSV), a virus of theArteriviridaefamily, with a high rate of variation and has caused huge economic losses to the pig industry in various countries since its discovery. Our results show that GCP can inhibit PRRSV replication in a dose-dependent manner. Furthermore, GCP could inhibit the mRNA expression of receptor genes CD163 and NF-κB p65 and promote the mRNA expression of the SLA-7 gene. Because of these results, GCP can be used as a candidate drug to prevent and treat PRRS.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12985-023-02052-9.