It has been shown that silica container particles containing a large amount (~1 g/g of SiO2) of a corrosion inhibitor, catamine AB, can be obtained, with the inhibitor being loaded at the stage of the sol–gel synthesis of the particles by using catamine micelles as a template. Being introduced into an H2S-containing aggressive aqueous medium, such containers protect rather efficiently carbon steel from hydrogen-sulfide corrosion and hydrogenation. The protection effect seems to be realized via not only the release (desorption) of catamine AB molecules from the containers, but also the adsorption of the products of gradual dissolution of silica matrix on the surface of metal being protected.