IntroductionThe dynamic HIV/AIDS epidemic significantly impacts China, particularly affecting injection drug users (IDUs), former plasma donors (FPDs), men who have sex with men (MSM), and those engaging in high-risk heterosexual behavior (HRHB). This study specifically focuses on identifying the risk factors and influences that drive the spread of HIV among these population groups by performing a comprehensive analysis of contact histories of individuals diagnosed with HIV.MethodsData for this research were gathered from China’s HIV/AIDS Comprehensive Response Information Management System (CRIMS). Contact histories were described using bar and venn diagram. Trend in engaging in HBRB among MSM were identify potential change using the Cochran-Armitage test. Logistic regression was employed to analyze the factors influencing HBRB in MSM.ResultsFrom 1989 through to 2022, a total of 1,457,218 individuals aged 15 years or older in China, who reported being infected with HIV, indicated they had one or more types of contact histories including injecting drug use, male homosexual behavior, commercial plasma donation, and high-risk heterosexual behavior. Among these, 97.0% reported a single type of contact history, while 3.0% reported having multiple contact histories. Of those with multiple contact histories, 98.0% (42,258 individuals) had engaged in HRHB. Among all HIV-infected IDUs, MSM, and FPDs, their respective proportions of engagement in HRHB were 11.8%, 5.7% and 6.2%. Prior to 2012, most were reported to be IDUs; however, subsequent to this, most reported being MSM. Factors that heightened the risk of engaging in HRHB among HIV-infected MSM included being of age between 25–34 years [adjusted odds ratio (AOR) = 1.29] or 35–44 years (AOR = 1.22), marital status such as being married (AOR = 1.23) or being divorced/widowed (AOR = 1.17), belonging to an ethnic minority (AOR = 1.29), receiving diagnosis in hospitals (AOR = 1.81), residing in rural areas (AOR = 1.12), among others. However, the risk of HRHB decreased when age ≥ 55 years (55–64 years: AOR = 0.82; ≥ 65 years: AOR = 0.64).ConclusionThe potential for HIV transmission among diverse populations is substantial. As such, it is imperative that strategies are implemented to mitigate the propagation of HIV to the general populace via heterosexual intercourse.