Used as an antacid to neutralize gastric acid, reduce gastric acidity and acid load entering the duodenum, thereby decreasing pepsin activity and alleviating symptoms such as epigastric pain; exhibits astringent and hemostatic effects; used in the treatment of gastric and duodenal ulcers, chronic superficial gastritis, and for relieving symptoms of excessive gastric acid including stomach pain, heartburn, and acid regurgitation; also used as a crosslinking agent; applied in detergents and electroplating solutions.