Dental caries is a disease in which chronic progressive destruction of the hard dental tissues occurs under the influence of multiple factors, among which, bacterial infection being the most important one. Dental plaque biofilm is a key factor in the pathogenesis of dental caries. Under normal circumstances, microorganisms within the biofilm maintain a dynamic balance through coordination, competition, and antagonism. However, when the environment changes, the balance in the biofilm will be disrupted, and the number of cariogenic bacteria, especially Streptococcus mutans (S. mutans), will increase significantly, thereby causing the production of large amounts of organic acids on the tooth surface, tooth demineralization, and the formation of dental caries. Therefore, finding ways to restore the dynamic balance of oral microorganisms through selective inhibition of S. mutans is key to the prevention and treatment of dental caries. Herein, we reviewed the research progress of recent years in the development of materials with selective antibacterial effect, intending to provide references for the further development of drugs for the prevention and treatment of dental caries. Future studies should focus on the following aspects, mechanism, clinical efficacy, chemical modification, and safety, to supplement and make improvements on the existing relevant research, and to promote progress in research and development of drugs for the prevention and treatment of dental caries.