The stomach lining secretes gastric juice containing hydrochloric acid and enzymes. The primary protein-digesting enzyme in the stomach is pepsin. Pepsin is secreted in an inactive precursor form called pepsinogen, which is converted to active pepsin by the acidic environment created by hydrochloric acid.