The older version of using (sodium bicarbonate and aluminum hydroxide) used the concept of using a base to neutralize the acid. This reduces the acidity in the stomach hence alleviate the heartburn. The newer version (h2-receptor antagonists or protein pump inhibitors) inhibit the progression of the biological pathway that results in secretion of HCL by the parietal cells of the stomach.