A novel method that selectively polymerizes pyrrole on the silica surface without inducing polymerization in bulk solution is developed, which is based on in situ generation of the NO(+) ion as an oxidant at the silica surface.