Understanding the physical properties of magnetic nanowires (NWs) is of crucial importance due to their potential technological applications. In this paper we report a detailed study on the temperature dependence of the magnetic [M(T)] and magnetotransport [MR(T)] properties of Ni and NiFe NWs grown on anodic aluminum oxide templates. While the behavior of the NiFe NWs reflected the presence of a strong shape anisotropy, Ni NWs showed anomalous M(T )a nd MR(T). The deviations from the expected M(T )a nd MR(T) behaviors suggest a reorientation of the magnetization easy axis with decreasing temperature. We then extracted the temperature variation of the angle between the magnetization and the NW longitudinal axis, and found an increase from 0 ◦ at 370 K to ∼43 ◦ at 5 K. Using a fourth-order magnetic anisotropy energy model we were able to successfully explain our results and show that the presence of a magnetoelastic anisotropy contribution due to the compressive stress acting in the NWs is the main origin of the observed magnetization reorientation.