1 If you have kidney problems, check with your doctor before you use aluminum-based antacids. 2  Magnesium compounds (such as Phillips' Milk of Magnesia) may cause diarrhea. 3  Combination aluminum-magnesium antacids are less likely to cause constipation or diarrhea than are aluminum-only or magnesium-only antacids.