Science challengesChemistry

Why do magnesium and oxygen form charged ions?

Explain how magnesium and oxygen atoms form ions and bond in magnesium oxide.