Magnetic nanoparticle-containing adhesive with DMAHDM and NACP under a magnetic force yielded much greater dentin bond strength than commercial control. The novel adhesive reduced biofilm CFU by 4 logs and increased the biofilm pH from a cariogenic pH 4.5-6.9, and therefore is promising to enhance the resin-tooth bond, strengthen tooth structures, and suppress secondary caries at the restoration margins.