Redox-
Reaction
= Electron-Transfer-Reaction
In this reaction the electron donor substance (i.e. Mg) is oxidized while an electronen acceptor substance (i.e. O) is reduced.
Example: Combustion of magnesium (left photo):
Right: In the PSE the noble gas neon (10Ne) is placed in the middle between (12Mg) and (8O). A magnesium atom (12Mg) has 2 electrons more than a neon atom (10Ne).  Mg and O exchange 2 electrons.
12Mg donates two of its electrons while 8O accepts them.    Each electron has one negative unit of charge. That means: The O atom has become an oxide ion with a double negative charge (O2-) and  the Mg atom has become a magnesium ion with a double positive charge (Mg2+).
              Both attract each other to form a unit cell of magnesium oxide.