During the replacement reaction of magnesium and hydrochloric acid MgCl₂ is produced with hydrogen gas.
Replacement reactions are those reactions in which one entity from the one of the reactant will replace by another entity for the formation of the product.
Balanced chemical reaction between magnesium and HCl will be represented as:
Mg²⁺ + 2HCl → MgCl₂ + H₂
In the baove reaction magnesium displaces hydrogen atom from the acid molecule.
Hence MgCl₂ is produced in the reaction.
To know more about replacement reaction, visit the below link:
https://brainly.com/question/13328989