Hollow mesoporous silica nanoparticles( HMSs) were prepared using polystyrene microspheres( PS) as hard templates. The supramolecular nanovalves in the form of bistable pseudorotaxane molecules were installed on the surface of the HMSs and achieved the acidic and basic dual stimuli-responsive release effects of corrosion inhibitor molecules,benzotriazole( BTA). The morphology and structure of HMSs were characte-rized by transmission electron microscope( TEM),X-ray diffraction assay( XRD),Brunauer-EmmettTeller( BET) and Barrett-Joyner-Halenda( BJH) analyses. The surface functionalization of HMSs was demonstrated by Fourier transform infrared spectrometer( FTIR) and thermogravimetric analysis( TGA). The release performances of BTA at different pH values were monitored by UV-Vis spectrophotometer. The results showed that the HMSs were monodispersed nanospheres and the specific surface area was 1141. 16 m2/ g. The intelligent nanocontainers constructed by the supramolecular self-assembly technology realized zero premature releaseat neutral condition and remarkable release at acidic or alkaline conditions.