PurposeThis study aimed to determine the effect of postsurgical vaginal microbiome (VM) on high-risk human papillomavirus (hrHPV) infection and the risk of disease recurrence in patients surgically treated for cervical cancer (CC) or intraepithelial neoplasia (CIN). Methods207 women who underwent surgical treatment for CC or CIN at the Department of Gynecologic Oncology of the First Affiliated Hospital of University of Science and Technology of China from November 2016 to October 2023 were included. The patients’ clinical data, including age, surgical modality, and diagnosis at time of index surgery, were collected retrospectively and analyzed. Associations between postsurgical VM indices, hrHPV infection, cervical cytology, and recurrence were also evaluated. ResultsPatient age, surgical modality (whether complete excision of the cervix was performed), and diagnosis at time of index surgery (cervical dysplasia vs. cervical carcinoma) showed no significant association with postsurgical hrHPV infection, cervical cytology, or disease recurrence. However, postsurgical VM imbalance was significantly associated with hrHPV infection status (OR = 4.640, 95 % CI = 2.085–10.460, P < 0.001), abnormal cervical cytology (OR = 3.994, 95 % CI = 1.154–13.826, P = 0.020), and disease recurrence (OR = 3.789, 95 % CI = 1.091–13.154, P = 0.026). Among the specific VM indices, a vaginal pH above 4.5 (OR = 4.570, 95 % CI = 1.640–12.690, P = 0.002), a lactobacilli proportion below 50 % (OR = 3.938, 95 % CI = 1.299–11.934, P = 0.010), and the presence of aerobic vaginitis (AV, OR = 2.425, 95 % CI = 0.996–5.901, P = 0.046) were risk factors for postsurgical recurrence. ConclusionPostsurgical VM imbalance, especially abnormal indices, such as a pH above 4.5, a lactobacilli proportion below 50 %, and the presence of AV, was associated with an increased risk of postsurgical recurrence in patients who underwent surgical treatment for CIN and CC. Monitoring and potentially intervening in the VM may improve the prognosis of these patients.