Magaldrate is an antacid that neutralizes stomach acid and provides relief from heartburn, indigestion, and ulcers. It is a complex of magnesium and aluminum hydroxides designed to minimize both constipation and diarrhea. It is often preferred in long-term acid suppression therapies.