Hydrochloric acid is produced in the stomach. Production of too much of acid in the stomach leads to the irritation of the stomach lining. This in turn can lead to formation of ulcers in the stomach. Excess acid can be neutralised by taking antacids which are basic in nature.