BackgroundThis study is used to analyze the genetic network of HIV sexual transmission in rural areas of Southwest China after expanding antiretroviral therapy (ART) and to investigate the factors associated with HIV sexual transmission through the genetic network.Materials and methodsThis was a longitudinal genetic network study in Guangxi, China. The baseline survey and follow-up study were conducted among patients with HIV in 2015, and among those newly diagnosed from 2016 to 2018, respectively. A generalized estimating equation model was employed to explore the factors associated with HIV transmission through the genetic linkage between newly diagnosed patients with HIV (2016–2018) and those at baseline (2015–2017), respectively.ResultsOf 3,259 identified HIV patient sequences, 2,714 patients were at baseline, and 545 were newly diagnosed patients with HIV at follow-up. A total of 8,691 baseline objectives were observed by repeated measurement analysis. The prevention efficacy in HIV transmission for treated HIV patients was 33% [adjusted odds ratio (AOR): 0.67, 95% confidence interval (CI): 0.48–0.93]. Stratified analyses indicated the prevention efficacy in HIV transmission for treated HIV patients with a viral load (VL) of <50 copies/ml and those treated for 4 years with a VL of <50 copies/ml to be 41 [AOR: 0.59, 95% CI: 0.43–0.82] and 65% [AOR: 0.35, 95% CI: 0.24–0.50], respectively. No significant reduction in HIV transmission occurred among treated HIV patients with VL missing or treated HIV patients on dropout. Some factors were associated with HIV transmission, including over 50 years old, men, Zhuang and other nationalities, with less than secondary schooling, working as a farmer, and heterosexual transmission.ConclusionThis study reveals the role of ART in reducing HIV transmission, and those older male farmers with less than secondary schooling are at high risk of HIV infection at a population level. Improvements to ART efficacy for patients with HIV and precision intervention on high-risk individuals during the expansion of ART are urgently required.