To avoid excessive usage of antibiotics and antimicrobial agents, smart wound dressings permitting controlled drug release for treatment of bacterial infections are highly desired. In search of a sensitive stimulus to activate drug release under physiological conditions, we found that the glass transition temperature (T g ) of a polymer or polymer blend can be an ideal parameter because a thermal stimulus can regulate drug release at the physiological temperature of 37 °C. A well-tuned T g for a controlled drug release from fibers at 37 °C was achieved by varying the blending ratio of Eudragit® RS 100 and poly(methyl methacrylate). Octenidine, an antimicrobial agent often used in wound treatment, was encapsulated into the polymer blend during the electrospinning process and evaluated for its controlled release based on modulation of temperature. The thermal switch of the nanofibrous membranes can be turned "on" at physiological temperature (37 °C) and "off" at room temperature (25 °C), conferring a controlled release of octenidine. It was found that octenidine can be released in an amount at least 8.5 times higher (25 mg•L −1 ) during the "on" stage compared to the "off" stage after 24 h, which was regulated by the wet T g (34.8−36.5 °C). The "on"/"off" switch for controlled drug release can moreover be repeated at least 5 times. Furthermore, the fabricated nanofibrous membranes displayed a distinctive antibacterial activity, causing a log3 reduction of the viable cells for both Gram negative and positive pathogens at 37 °C, when the thermal switch was "on". This study forms the groundwork for a treatment concept where no external stimulus is needed for the release of antimicrobials at physiological conditions, and will help reduce the overuse of antibiotics by allowing controlled drug release.