MgO is formed between a metal (Mg) and a non-metal (O) with a large difference in electronegativity, leading to the transfer of electrons and the formation of a purely ionic bond. [cite: 534, 535, 537]