The stomach is protected by a thick layer of mucus that coats the stomach lining. This mucus contains bicarbonate, which neutralizes acid near the stomach wall, preventing it from being digested by gastric juice. Additionally, the stomach lining regenerates quickly, which helps repair any minor damage.