A reaction in which the chemical element of the reactant is replaced by another to produce a product is called a single replacement reaction.
In a reaction, a hydrogen, metal or halogen element can get replaced with other more reactive elements to yield products.
The reaction of magnesium and hydrochloric produces:
[tex]\rm MgCl_{2}[/tex]
The reaction can be explained as:
[tex]\rm Mg (s) + 2 \;HCl \;(aq) \rightarrow MgCl_{2} \;(aq) + H_{2} (g)[/tex]
Therefore, another product formed will be magnesium chloride.
To learn more about displacement reaction follow the link:
https://brainly.com/question/10557249