 After leaving the stomach, the hydrochloric acid of the chyme is neutralized in the duodenum by sodium bicarbonate.The stomach itself is protected from the strong acid by the secretion of a thick mucus layer, and by secretin induced buffering with sodium bicarbonate.Heartburn or peptic ulcers can develop when these mechanisms fail.