Mesoporous silica nanocontainer powders were applied as corrosion inhibitor hosts and dispersed in the polypyrrole matrix. Then, the release and corrosion resistance of these composite coatings were studied with and without inhibitor in NaCl solution. Results showed that in higher pHs and more aggressive chloride media, the release content of corrosion inhibitor is higher. OCP, ICP, XRD, EIS, and FTIR results showed that the substrates were better protected in the presence of released corrosion inhibitor from mesoporous silica compared to the coatings without inhibitor. Then, the corrosion inhibitor reacted with substrate and made a protective phase during corrosion.