The 3D-hexagonal mesoporous films are used as templates to grow uniform silver nanoparticles. The grafting of hydrophobic groups at the pore surface, significantly slows down the silver ion diffusion, anchoring small silver clusters in micropores and leading to organized domains of silver particles in mesopores with a narrow size distribution.