Mg(s)+2HCl(aq)→MgCl2(aq)+H2(g) Explanation: The reaction between magnesium and hydrochloric acid combine to form a salt of magnesium chloride and release hydrogen gas. This single replacement reaction is a classic example of a metal reacting in an acid to release hydrogen gas.