In the present study, the diagnostic value of high risk-human papillomavirus (HR-HPV) combined with colposcopy for the detection of cervical cancer and precancerous lesions was evaluated. A total of 397 patients with confirmed cervical disease were enrolled between August 2020 and December 2021. According to the pathological diagnosis, the patients were divided into cervical intraepithelial neoplasia grade I (CIN I; n=153 cases), CIN II (n=101 cases), CIN III (n=86 cases) and cervical cancer (n=57 cases) groups. The HR-HPV-positive rate of the patients with different lesion types was compared, and the consistency of colposcopy and pathological examination results were assessed. For cervical cancer and precancerous lesions, the diagnostic value and efficacy of HR-HPV testing, colposcopy and combined HR-HPV testing and colposcopy examination were compared using pathological examination results as the gold standard. The results of the present study demonstrated that in patients with cervical cancer, the positive rate of HR-HPV (100.00%; n=57/57) was higher than that in patients with precancerous lesions, and the positive rate of HR-HPV in patients with CIN I type (36.60%, n=56/153) was lower than that in patients with CIN II (83.17%, n=84/101) and CIN III (82.56%, n=71/86) types (P<0.05). There was no significant difference in the HR-HPV-positive rate between patients with CIN II and CIN III (P>0.05). Cohen's κ coefficient for colposcopy examination and pathological examination of patients with cervical cancer and precancerous lesions was 0.622, the diagnostic accuracy was 90.43% (n=359/397), the positive predictive value was 65.57% (n=40/61), and the negative predictive value was 94.94% (n=319/336). Receiver operating characteristic curve analysis demonstrated that the area under the curve of the combined examination in the diagnosis of cervical cancer and precancerous lesions was 0.904, which was higher than that of colposcopy (0.820) or HR-HPV testing (0.802) alone (P<0.05). The results of the present study indicated that HR-HPV detection combined with colposcopy has diagnostic value for cervical cancer and precancerous lesions.