Porcine reproductive and respiratory syndrome virus (PRRSV) has been prevalent in China for more than 25 years and remains one of the most significant pathogens threatening the pig industry. The high rate of mutation and frequent recombination of PRRSV have exacerbated its prevalence, particularly with the emergence of highly pathogenic PRRSV (HP-PRRSV) has significantly increased the pathogenicity of PRRSV, posing a serious threat to the development of Chinese pig farming. To monitor the genetic variation of PRRSV-2 in China, the GP5 sequences of 517 PRRSV-2 strains from 1996 to 2022 were analyzed and phylogenetic trees were constructed. Furthermore, a total of 60 PRRSV strains, originating from various lineages, were carefully chosen for nucleotide and amino acid homologies analysis. The results showed that the nucleotide homologies of the PRRSV GP5 gene ranged from 81.4 to 100.0%, and the amino acid homologies ranged from 78.1 to 100.0%. Similarly, the PRRSV GP5a gene showed 78.0 ~ 100.0% nucleotide homologies and 70.2 ~ 100.0% amino acid homologies. Amino acid sequence comparisons of GP5 and GP5a showed that some mutations, such as substitutions, deletions, and insertions, were found in several amino acid sites in GP5, these mutations were primarily found in the signal peptide region, two highly variable regions (HVRs), and near two T-cell antigenic sites, while the mutation sites of GP5a were mainly concentrated in the transmembrane and intramembrane regions. Phylogenetic analysis showed that the prevalent PRRSV-2 strains in China were divided into lineages 1, 3, 5, and 8. Among these, strains from lineage 8 and lineage 1 are currently the main prevalent strains, lineage 5 and lineage 8 have a closer genetic distance. Recombination analysis revealed that one recombination event occurred in 517 PRRSV-2 strains, this event involved recombination between lineage 8 and lineage 1. In conclusion, this analysis enhances our understanding of the prevalence and genetic variation of PRRSV-2 in China. These findings provide significant insights for the development of effective prevention and control strategies for PRRS and serve as a foundation for future research in this field.