Gastric juice is a mixture of hydrochloric Acid (HCL), pepsin, and lipase. Its primary function is to kill microorganisms that have been swallowed and prevent infectious agents from reaching your intestine.