Cervical cancer is the most common gynecological malignancy and screening for risk factors with early detection has been shown to reduce the mortality. In this study, we aimed to analyze the characteristics and risk factors of human papillomavirus (HPV) infection and precancerous lesions in women and provide clinical evidence for developing strategies to prevent cervical precancerous lesions and cancer in women. Furthermore, we evaluated the influencing factors for high-risk HPV infection. From April 2018 to December 2021, 10,628 women were recruited for cervical cancer screening at Liaoning Cancer Hospital, Shenyang Sujiatun District Women’s and Infants Hospital, Benxi Manchu Autonomous County People’s Hospital, and Shandong Affiliated Hospital of Qingdao University. The study participants were tested to determine if they were HPV-positive (HPV +) or underwent thinprep cytology test (TCT) for atypical squamous cells of undetermined significance (ASCUS) and above. Furthermore, colposcopies and biopsies were performed for the histopathological examination. Finally, 9991 cases were included in the statistical analysis, and the factors influencing HPV infection and those related to cervical cancer and precancerous lesions were analyzed. HPV + infection, high-grade squamous intraepithelial lesion-positive (CINII +) in cervical high-grade intraepithelial neoplasia, and early cervical cancer diagnosis rates were 12.45, 1.09, and 95.41%, respectively. The potential risk factors for HPV were education ≤ high school [odds ratio (OR) = 1.279 (1.129–1.449), P < 0.001], age at initial sexual activity ≤ 19 years [OR = 1.517 (1.080–2.129), P = 0.016], sexual partners > 1 [OR = 1.310 (1.044–1.644), P = 0.020], ASCUS and above [OR = 11.891 (10.105–13.993), P < 0.001], non-condom contraception [OR = 1.255 (1.059–1.487), P = 0.009], and HSIL and above [OR = 1.541 (1.430–1.662), P < 0.001]. Compared with women aged 56–65 and 35–45 years [OR = 0.810 (0.690–0.950), P = 0.010] the HPV infection rate was significantly lower in those aged 46–55 years [OR = 0.79 (0.683–0.915), P = 0.002]. Furthermore, ≤ high school age [OR = 1.577 (1.042–2.387), P = 0.031], not breastfeeding [OR = 1.763 (1.109–2.804), P = 0.017], ASCUS and above [OR = 42.396 (28.042–64.098), P < 0.001] were potential risk factors for cervical cancer and precancerous lesions. In women with HPV infection, ≤ high school education level, initial sexual activity at ≤ 19 years of age, number of sexual partners > 1, ASCUS and above, non-condom contraception, HSIL and above were risk factors for HPV infection. Compared with women aged 56–65 years, those aged 35–45 and 46–55 years had significantly lower HPV infection rates, and high school age and below, non-breastfeeding, and ASCUS and above were all potential risk factors for cervical cancer and precancerous lesions.