Through the chemical process known as "ion-pairing", magnesium ion concentration influences the saturation point for calcium carbonate in solution. Magnesium also plays an important role in stabilizing pH by interacting with the buffer system of seawater.
eBay