When a magnesium ion is attracted to a chlorine ion, they form an ionic compound by exchanging electrons.
When a magnesium ion is attracted to a chlorine ion, they form an ionic compound. In this process, magnesium loses two electrons to become Mg^2+, and chlorine gains one electron to become Cl^-. The attraction between the positively charged magnesium ion and negatively charged chlorine ion results in the formation of magnesium chloride.
https://brainly.com/question/11527546