Antacids neutralize stomach acid, though depending on brand and type they differ greatly in their reaction time and neutralizing capacity.
Veterinarians sometimes use antacids to prevent and treat dog stomach disorders and to lower high phosphorous levels in animals with kidney failure.
Maalox etc. (aluminum; magnesium) works by neutralizing or reducing stomach acid.