Background: The oral microbial ecosystem, with distinct characteristics in structure and evolution, plays an important role in the mucosal homeostasis. The characterization of baseline microbial and functional diversity in the oral microbiome has been discussed, yet the taxon-taxon relationships, and the role of the microbes themselves to the host mucosa are still lack of discussing. In addition, the current literature seems insufficient to draw a definitive conclusion about a possible impact of ageing on the oral microbiota. Therefore, the study focuses on the spatial and temporal characteristics of the oral microbial ecosystem, and its correlation with immune cell in oral homeostasis. Results: The V3V4 region of 16S rRNA gene of 30 samples from different sites (gingiva, palate, buccal, tongue) and life stages (adult, old) was analyzed. Flow cytometry was used to investigate the residing immune cells. The niche-specialist and age-related communities, characterized by alterations in microbiota structure, taxon-taxon relationship, microbial functions, and immune cell inhabiting, have been addressed. Interestingly, network analysis shows more antagonistic interactions in gingiva, palatal site, and old mice saliva, where harbor a richer diversity. While in buccal mucosa and tongue, it appears more synergic interactions to maintain the ecosystem balance. Functional analysis reveals that the significant factor that determines the niche for a microbe is its local habitat in the content of one specific age, which includes its immediate neighbors. Correlation analysis suggests strong associations between distinct oral bacteria and Th cells exist in different life stages. Conclusions: Our findings propose that the oral microbial ecosystem, with niche-specialist and age-related characteristics, has unique evolution and co-evolution with the host to maintain oral homeostasis, which provides critical insights on mucosal microbiology.