The bond order of Mg2 molecule is given by:
Mg2 = 4e⁻= 3σs(2e⁻) 3σs*(2e⁻) 3σp(0) 3πp(0e⁻) 3πp*(0e⁻) 3σp*(0e⁻)
Bond Order = ½[Σ (bonding e-) - Σ (antibonding e-)]
bo = ½[ {σs(2e⁻)} - {σs*(2e⁻)}] = 0
the bond between Mg2 molecules are ionic bonding and it stable.