On of the elements making up the earth’s crust, the compounds of which when dissolved in water make the water hard. The presence of magnesium in water is a factor contributing to the formation of scale and insoluble soap curds.