Magnesium is a chemical element with the symbol Mg and atomic number 12. It is an essential mineral that plays a vital role in numerous bodily functions and is closely connected to the topics of periodic variations in element properties and galvanic cells.