Human papillomavirus type 16 (HPV16) and/or high-risk (Hr-) HPV are the main causes of cervical cancer. Another element that may contribute to the development of cervical cancer is the microbiota. To date, no study has investigated the entire cervical microbiome, which consists of bacteria, fungi, and viruses. In this study, cervical samples with different histopathology (CIN1, CIN2, and CIN3), with or without HPV16 and Hr-HPVs infection, were enrolled. From bacterial community analysis, 115 bacterial species were found and separated into 2 distinct categories based on Lactobacillus abundance: Lactobacilli-dominated (LD) and non-Lactobacilli-dominated (NLD) groups. The LD group had significantly less bacterial diversity than the NLD group. In addition, the variety of bacteria was contingent on the prevalence of HPV infection. Among distinct histological groups, an abundance of L. iners (>60% of total Lactobacillus spp.) was discovered in both groups. A few fungi, e.g., C. albicans, were identified in the fungal community. The viral community analysis revealed that the presence of HPV considerably reduced the diversity of human viruses. Taken together, when we analyzed all our results collectively, we discovered that HPV infection was a significant determinant in the diversity of bacteria and human viruses in the cervix.