Antacids are medications used to neutralize stomach acid, which can cause heartburn, indigestion, and other digestive discomforts. They contain alkaline compounds like calcium carbonate, magnesium hydroxide, or aluminum hydroxide, which react with the acid in the stomach to form salt and water. This can provide temporary relief from symptoms of acid reflux or gastroesophageal reflux disease (GERD).