When hydrochloric acid is added to magnesium, which gas is liberated?
Hydrogen
When hydrochloric acid is added to magnesium, magnesium chloride is formed with the evolution of hydrogen gas.
This reaction is an example of displacement reation. In displacement reaction more reactive element displaces the less reactive element from their compounds.
The balanced chemical reaction for the following is :
Mg+2HCl→MgCl2+H2+Heat