The resistance of Al-21%Cu alloy under no magnetic field, DC magnetic field and AC magnetic field from liquid to solid was measured by a four-probe method. The difference of resistance versus temperature curves (R-T curves) was analyzed. It is found that the R-T curves of Al-21%Cu alloy are monotone decreasing and have two obvious turning points. Under DC magnetic field, the liquidus and solidus temperatures of the alloy both decrease, while under AC magnetic field, the liquidus and solidus temperatures both increase. There is a good agreement between the microstructure of quenching sample and R-T curves. The mechanism of the effect of magnetic fields was discussed.