When our stomach produces excess acid, which is essential for digestion, it is called acidity. In case of acidity, most of the time the doctor prescribes antacids. Antacids usually contain magnesium hydroxide or aluminum hydroxide which is alkaline. This alkaline antacid reacts with stomach acid to soothe the acid.