The magnetic NiFex nanowires were prepared via template-guided electrodeposition. Anodized nanoporous aluminum was used as a template. The pore density and dimensions of alumina templates can be controlled by anodization conditions. Magnetic nanorods (or