1 Antacids that contain magnesium have a laxative effect that may cause diarrhea, and in patients with renal failure they may cause increased magnesium levels in the blood, because of the reduced ability of the kidneys to eliminate magnesium from the body in the urine.