Answer:
Ionic Bond
Step-by-step explanation:
Ionic bonding occurs when there is a significant difference in electronegativity between atoms, resulting in the transfer of electrons. In the case of magnesium (Mg) and oxygen (O), magnesium, with a lower electronegativity, donates two electrons to oxygen, which has a higher electronegativity. This leads to the formation of Mg²⁺ cations and O²⁻ anions. The resulting electrostatic attraction between these oppositely charged ions forms an ionic bond, resulting in the creation of magnesium oxide (MgO), a compound with a crystal lattice structure.