Co1−xFex alloy nanowires with 40 nm diam and x=0–1.0 were fabricated by electrodeposition in nanopores of alumina templates. The crystalline structure of the nanowires is concentration dependent and shows a transition from the cobalt hexagonal-closed-packed structure (hcp) to a face-centered-cubic structure (fcc) in the concentration range