Why is it easy for a magnesIum(mg number 12)

To lose 2 electrons.

Is it because the nuclear charge of the mg atom is relatively weak?