Dental caries is closely related to the acidification of the biofilms on the tooth surface, in which cariogenic bacteria bring about a dramatic pH decrease and disrupt remineralisation equilibrium upon the fermentation of dietary sugars. Thus, approaches targeting the acidified niches with enhanced anticaries activities at acidic pH are highly desirable. In our previous study, a cationic amphipathic α-helical antimicrobial peptide GH12 (Gly-Leu-Leu-Trp-His-Leu-Leu-His-His-Leu-Leu-His-NH<sub>2</sub>) was designed with good stability, low cytotoxicity, and excellent antibacterial effects. Considering its potent antibacterial activity against the acidogenic bacteria and its histidine-rich sequence, it was speculated that GH12 might show enhanced antimicrobial effects at an acidic pH. In this study, the pH-responsive property of GH12 was determined to evaluate its potential as a smart acid-activated anticaries agent. GH12 possessed much lower minimal inhibitory concentrations and minimal bactericidal concentrations against various kinds of bacteria at pH 5.5 than at pH 7.2. Employing Streptococcus mutans, the principal caries pathogen, as the model system, it was found that GH12 showed much stronger bactericidal effects on both planktonic S. mutans and S. mutans embedded in the biofilm at pH 5.5. In addition, short-term treatment with GH12 showed much more effective inhibitory effects on water-insoluble exopolysaccharides synthesis and lactic acid production of the preformed S. mutans biofilm at pH 5.5. As for the mechanism exploration, it was found that the net positive charge of GH12 increased and the tryptophan fluorescence intensity heightened with the peak shifting towards the short wavelength at pH 5.5, which demonstrated that GH12 could be more easily attracted to the anionic microbial cell membranes and that GH12 showed stronger interactions with the lipid membranes. In conclusion, acidic pH enhanced the antibacterial and antibiofilm activities of GH12, and GH12 is a potential smart anticaries agent targeting the cariogenic acidic microenvironment.