Answer :

If you reacted HCl with a metal E.G. Mg, the electrons lost from the Mg atoms would bond to the hydrogen atoms during the reaction. This is known as a redox reaction.

2HCl + Mg -> MgCl2+H2