How does an antacid fight excess acidity?

Questions

Hоw dоes аn аntаcid fight excess acidity?