The continuously increasing bacterial resistance has become a big threat to public health worldwide, which makes it urgent to develop innovative antibacterial strategies. Nanotechnology-based drug delivery systems are considered as promising strategies in combating bacterial infections which are expected to improve the therapeutic efficacy and minimize the side effects. Unfortunately, the conventional nanodrug delivery systems always suffer from practical dilemmas, including incomplete and slow drug release, insufficient accumulation in infected sites, and weak biofilm penetration ability. Stimuli-responsive nanoplatforms are hence developed to overcome the disadvantages of conventional nanoparticles. In this review, we provide an extensive review of the recent progress of endogenous and exogenous stimuli-responsive nanoplatforms in the antibacterial area, including planktonic bacteria, intracellular bacteria, and bacterial biofilms. Taking advantage of the specific infected microenvironment (pH, enzyme, redox, and toxin), the mechanisms and strategies of the design of endogenous stimuli-responsive nanoplatforms are discussed, with an emphasis on how to improve the therapeutic efficacy and minimize side effects. How to realize controlled drug delivery using exogenous stimuli-responsive nanoplatforms especially light-responsive nanoparticles for improved antibacterial effects is another topic of this review. We especially highlight photothermal-triggered drug delivery systems by the combination of photothermal agents and thermo-responsive materials. This article is categorized under: Therapeutic Approaches and Drug Discovery > Nanomedicine for Infectious Disease Therapeutic Approaches and Drug Discovery > Emerging Technologies.