Spermatogenesis is a complex process regulated by many genes. In this study, H2AFZ, RNF4 and NR4A1 genes were selected as candidate genes for boar semen quality traits based on their functions during spermatogenesis, and the associations of three loci (H2AFZ c.192 + 210–192 + 213delCGAT, RNF4 c.374 + 358 T > C and NR4A1 c.956 + 796 A > G) with sperm quality traits were analyzed in Duroc (n = 185), Large White (n = 87) and Landrace (n = 49) pig populations. The results showed H2AFZ c.192 + 210–192 + 213delCGAT AA boars produced 1.52% lower abnormal sperm rate (ASR) than AB boars in Landrace pigs (p < 0.05); RNF4 c.374 + 358 TC boars produced 0.31 × 108/ml higher sperm concentration (SCON) than CC boars (p < 0.05) in Large White pigs; NR4A1 c.956 + 796 A > G was associated with ASR in Duroc and Large White pigs and was associated with sperm motility (MOT) in Large White and Landrace pigs. This study indicated the H2AFZ, RNF4 and NR4A1 loci were the potential molecular markers for improving the semen quality traits in boars. [ABSTRACT FROM AUTHOR]