Abstract Background In response to the coronavirus disease 2019 (COVID-19) pandemic, the Chinese government implemented the dynamic COVID-zero strategy. We hypothesized that pandemic mitigation measures might have reduced the incidence, mortality rates, and case fatality ratios (CFRs) of the human immunodeficiency virus (HIV) in 2020–2022. Method We collected HIV incidence and mortality data from the website of the National Health Commission of the People’s Republic of China from January 2015 to December 2022. We compared the observed and predicted HIV values in 2020–2022 with those in 2015–2019 using a two-ratio Z-test. Results From January 1, 2015, to December 31, 2022, a total of 480,747 HIV incident cases were reported in mainland China, of which 60,906 (per year) and 58,739 (per year) were reported in 2015–2019 (pre-COVID-19 stage) and 2020–2022 (post-COVID-19 stage), respectively. The average yearly HIV incidence decreased by 5.2450% (from 4.4143 to 4.1827 per 100,000 people, p