A displacement reaction will only occur if the metal is more reactive than the metal in the compound; this is known as the displacement rule. Magnesium is more reactive than copper, so this reaction will occur.

13