Cobalt-nickel (Co-Ni) binary alloy nanowires of different compositions were co-deposited in the nanopores of highly ordered anodic aluminum oxide (AAO) templates from a single sulfate bath using alternating current (AC) electrodeposition. AC electrodeposition was accomplished without modifying or removing the barrier layer. Field emission scanning electron microscope was used to study the morphology of templates and alloy nanowires. Energy-dispersive X-ray analysis confirmed the deposition of Co-Ni alloy nanowires in the AAO templates. Average diameter of the alloy nanowires was approximately 40 nm which is equal to the diameter of nanopore. X-ray diffraction analysis showed that the alloy nanowires consisted of both hexagonal close-packed and face-centered cubic phases. Magnetic measurements showed that the easy x-axis of magnetization is parallel to the nanowires with coercivity of approximately 706 Oe. AC electrodeposition is very simple, fast, and is useful for the homogenous deposition of various secondary nanostuctured materials into the nanopores of AAO.