In humans and many other animals, hydrochloric acid is a part of the gastric acid secreted within the stomach. It can help hydrolyze proteins and polysaccharides. It can also convert the inactive pro-enzyme, pepsinogen into the enzyme, pepsin. Some organisms produce acids for defense; for example, ants produce formic acid, and octopi produce a black acid called magneta.