Nanorattles made of hollow polymer nanocapsules with entrapped silver nanoparticles were synthesized in one step by using lipid vesicles as templates. Free radical photoinitiator facilitated both polymerization within the bilayer and formation of metal nanoparticles in the aqueous core.