Aluminum hydroxide and magnesium hydroxide liquid (Maalox): This antacid typically is used to treat stomach upset, heartburn, and indigestion. In this formulation it helps the other ingredients coat the mouth. It is important to use Maalox and not another type of antacid.