Objective To analyze the effects of high-risk human papillomavirus(HR-HPV)infection on the cervico-vaginal microecology and the expression of miR-21 and cyclin-dependent kinase 5(CDK5)in cervical exfoliated cells.Meth-ods A total of 250 patients with cervicitis treated from January 2020 to December 2022 were selected as research subjects,and were divided into HR-HPV-negative group(n =160)and HR-HPV-positive group(n =90)according to HR-HPV infec-tion.HPV infection subtypes were detected in the HR-HPV-positive group,and cervicovaginal microecology between the two groups was compared.Real-time fluorescence quantitative PCR was used to detect the expression of miR-21 and CDK5 in two groups of cervical exfoliated cells.Spearman method was used to analyze the relationship between HR-HPV infection and the expression levels of miR-21 and CDK5 and cervical microecology,and the relationship between the levels of miR-21 and CDK5 in cervical cells and cervicovaginal microecology.Results In the HR-HPV-positive group,the detection rate of HR-HPV in-fection was the highest with HPV16 subtype,accounting for 53.33%.The rate of vaginal microecological imbalance,positive rate of ureaplasma urealyticum(UU),positive rate of chlamydia,abnormal rate of lactobacillus and incidence of bacterial vaginitis in HR-HPV-positive group were higher than those in HR-HPV-negative group(P<0.01).The relative expression levels of miR-21 and CDK5 in cervical exfoliated cells in HR-HPV-positive group were higher than those in HR-HPV-negative group(P<0.01).The expression levels of miR-21 and CDK5 in cervical exfoliated cells were positively correlated with the incidence of bacterial vaginitis,the positive rate of UU,the abnormal rate of lactobacillus and the positive rate of chlamydia(P<0.01).Conclusion HR-HPV infection can aggravate the disturbance of cervicovaginal microecology,increase the se-verity of cervical lesions,and significantly increase the expression of miR-21 and CDK5 in cervical exfoliated cells.