What will an atom with 2 electrons in its outermost shell most likely form?

But if it is an alkaline earth metal, beryllium, magnesium, calcium, strontium, barium, it will likely form an ${M}^{2 +}$ salt. Why should it do this?