Magnesium citrate is used medicinally as a saline laxative and to completely empty the bowel prior to a major surgery or colonoscopy. It is available without a prescription, both as a generic and under various brand names including Citromag and Citroma. It is also used in the pill form as a magnesium dietary supplement.