Carbonic anhydrase VI (CA6) catalyses the reversible hydration of carbon dioxide in saliva with possible pH regulation, taste perception, and tooth formation effects. This study assessed effects of variation in the CA6 gene on oral microbiota and specifically the acidophilic and caries-associated Streptococcus mutans in 17-year old Swedish adolescents (n = 154). Associations with caries status and secreted CA6 protein were also evaluated. Single Nucleotide Polymorphisms (27 SNPs in 5 haploblocks) and saliva and tooth biofilm microbiota from Illumina MiSeq 16S rDNA (V3-V4) sequencing and culturing were analysed. Haploblock 4 (rs10864376, rs3737665, rs12138897) CCC associated with low prevalence of S. mutans (OR (95% CI): 0.5 (0.3, 0.8)), and caries (OR 0.6 (0.3, 0.9)), whereas haploblock 4 TTG associated with high prevalence of S. mutans (OR: 2.7 (1.2, 5.9)) and caries (OR: 2.3 (1.2, 4.4)). The TTG-haploblock 4 (represented by rs12138897(G)) was characterized by S. mutans, Scardovia wiggsiae, Treponema sp. HOT268, Tannerella sp. HOT286, Veillonella gp.1 compared with the CCC-haploblock 4 (represented by rs12138897(C)). Secreted CA6 in saliva was weakly linked to CA6 gene variation. In conclusion, the results indicate that CA6 gene polymorphisms influence S. mutans colonization, tooth biofilm microbiota composition and risk of dental caries in Swedish adolescents.