HIV infection did not significantly impact semen microbiome, but the restoration of immunity by ART modified the relationship between semen microbiome and CD4+ T-cell count. This evidence concerns the gene CD4 and HIV infectious disease.