I think it depends what the magnesium is built into.
Magnesium oxide is ionic.
Magnesium carbonate is an ionic compound. It consists of magnesium ions (Mg2+) and carbonate ions (CO32-) held together by ionic bonds.
Magnesium hydroxide is an ionic compound, as it is composed of a metal cation (magnesium) and a hydroxide anion (OH-). Ionic compounds typically form when a metal reacts with a non-metal to transfer electrons.
Magnesium and iodine react to form the ionic compound magnesium iodide - MgI2.
Ionic
Magnesium chloride is a compound, not a bond of any kind. The compound is ionic.
Magnesium oxide, or MgO, is an ionic compound: the result of a metal reacting with a non-metal.
magnesium carbonate
Ionic
ionic
Magnesium and iodine will form an ionic bond. Magnesium, being a metal, will donate electrons to iodine, a nonmetal, resulting in the formation of magnesium iodide, which is an ionic compound.
They are NOT, Mg (metal) and O2 (bi-atomic gas) are elements and not compounds,BUTMagnesium oxide ( Mg=O ) is an ionic compound