Abstract Porcine reproductive and respiratory syndrome (PRRS) is a serious infectious disease and one of the major causes of death in the global pig industry. PRRS virus (PRRSV) strains have complex and diverse genetic characteristics and cross-protection between strains is low, which complicates vaccine selection; thus, the current vaccination strategy has been greatly compromised. Therefore, it is necessary to identify effective natural compounds for the clinical treatment of PRRS. A small molecule library composed of 720 natural compounds was screened in vitro, and we found that Sanggenon C (SC) was amongst the most effective natural compound inhibitors of PRRSV infection. Compared with ribavirin, SC more significantly inhibited PRRSV infection at both the gene and protein levels and reduced the viral titres and levels of protein expression and inflammatory cytokine secretion to more effectively protect cells from PRRSV infection and damage. Mechanistically, SC inhibits activation of the NF-κB signalling pathway by promoting TRAF2 expression, thereby reducing PRRSV replication. In conclusion, by screening natural compounds, we found that SC suppresses PRRSV infection by regulating the TRAF2/NF-κB signalling pathway. This study contributes to a deeper understanding of the therapeutic targets and pathogenesis of PRRSV infection. More importantly, our results demonstrate that SC has potential as a candidate for the treatment of PRRS.