Re–Mg–Ni-based alloys with specific proportion of 3R-A2B7 and 2H-A2B7 phases are obtained. 3R-A2B7 phase can transfer into 2H-A2B7 phase by increasing annealing temperature. 3R-A2B7 phase is easier to become amorphous than 2H-A2B7 phase. The 2H-A2B7 phase is favorable for the improvement of HRD and cyclic stability.