In the electrochemical series, H+ is above all the other elements in the series except Magnesium. Hence, only Mg2+ can displace hydrogen from a reaction.