Mg2+ is the divalent cation of the element magnesium, which has an atomic number of 12 and an atomic mass of 24.305 g/mol. As a positively charged ion, Mg2+ is an important participant in various chemical processes, particularly in the context of ionic bonding.