It treats heartburn, indigestion, upset stomach, or other conditions caused by too much stomach acid. It works by reducing the amount of acid in the stomach. It belongs to a group of medications called antacids. It may also be used to increase calcium levels in your body.