Objective: To detect and analyze the characteristics of oral microbiota in species composition, function and metabolism among caries, periodontitis and oral healthy individuals, hunting for the microbiome-derived biomarkers with specificity and sensitivity to estimate the occurrence of these two diseases. Methods: Saliva samples were collected from 10 patients with high caries risk [decayed-missing-filled teeth (DMFT)≥6, HC group] in Department of Endodontics, 10 patients with periodontitis of grade Ⅱ A-Ⅲ C (PG group) in Department of Periodontology and 10 oral healthy individuals (HH group) from School of Stomatology, The Fourth Military Medical University during from March 2022 to June 2022. A baseline examination was conducted on all participants, including their oral conditions of caries and periodontal health. Metagenomic sequencing (Illumina PE150 platform) and liquid chromatography-mass spectrometry were used to detect microorganisms and their metabolites in the samples respectively. The sequencing data were analyzed to obtain the information of microbial taxonomic composition, functional genes and metabolites in each group of samples. The basic oral conditions and saliva samples of subjects in each group were evaluated and collected by the same professional endodontist. Results: There were no significant difference in baseline characteristics such as age and sex among the subjects in each group (P>0.05). DMFT in HC group (9.0±1.7) was significantly higher than that in HH group (0) and PG group (0) (F=243.00, P<0.001). All participants in PG group belong to grade Ⅱ A-Ⅲ C in periodontitis stage. Sequencing data analysis showed that the taxonomic compositions of salivary microbiota in each group were mainly Firmicutes, Bacteroidetes, Proteobacteria, Actinobacteria and Fusobacteria at the phylum level, and Streptococcus, Neisseria, Rothia, Prevotella at the genus level. Differential analysis showed that, compared with the HH group, HC group and PG group had significant differences in taxonomic composition (P<0.05), and the most significant among them was Prevotella. At the species level, Prevotella pallens was the most significant change in HC group, and Porphyromonas gingivalis in PG group. Metabolite analysis showed that there were significant differences in metabolites between HC group and PG group. The results showed that, compared with the HH group, the most significant metabolite change was 3-hydroxy-1, 5-diphenylpentan-1-one in HC group (P=0.001) and N1 acetylspermine in PG group (P=0.002) respectively. Compared with the PG group, the metabolite of HC group with the most significant difference is D-glucosamine 6-phosphate (P=0.006). The metabolism gene function analysis showed that, the enrichment of carbohydrate metabolism related genes was highest in HC group, followed with HH group, and it was lowest in PG group. In addition, compared with the HH group, the abundance of functional genes related to glucose metabolism, such as ABC transporter and phosphotransferase system, were significantly decreased in PG group (P<0.05), but significantly increased in HC group (P<0.05). Conclusions: There is a significant correlation between the alternation of carbohydrate metabolism of salivary microbiota with the occurrence of caries and periodontitis. In the future, Prevotella pallens and 3-hydroxy-1, 5-diphenylpentan-1-one may be the potential biomarkers of caries; while Porphyromonas gingivalis and N1 acetylspermine work in the predictions of periodontitis.