The second ionization energy of Mg is larger than the first because it always takes more energy to remove an electron from a positively charged ion than from a neutral atom. The third ionization energy of magnesium is enormous, however, because the Mg2+ ion has a filled-shell electron configuration.
when an atom, typically a metal, loses an electron or electrons, and becomes a positive ion, or cation. Another atom, typically a non-metal, is able to acquire the electron(s) to become a negative ion, or anion.