The effects of many medications can be decreased or enhanced by magnesium hydroxide. In patients with renal failure, magnesium salts must be used with caution because magnesium retention could lead to magnesium toxicity. Safe use has not been developed in children younger than 2 years of age. Large doses during pregnancy can lead to a severe imbalance of fluids and electrolytes.