Baking soda is used as a medicine (antacid). When it is taken, it undergoes hydrolysis to give sodium hydroxide in the stomach. Thus, sodium hydroxide neutralizes the hydrochloric acid produced by gastric juice and gives relief to the patient from acidity.