$$\text{Pain or irritation is caused in our stomach when there is the production of an excess amount of acid in our body.}$$ $$\text{Antacids are basic in nature . Hence antacids are required when there is pain or irritation in the stomach to}$$ $$\text{neutralize the effect of the excess acid. }$$