Magnesium is a chemical element of the atomic number 12 and with the element symbol Mg. It is in the second main group on the periodic table and belongs to the alkaline earth metals. Magnesium is one of the ten most common elements of the earth's crust. It occurs in numerous minerals as well as in the leaf green of plants.