The main function of the stomach is to break down and digest food in order to extract necessary nutrients from what you have eaten. In order for this to happen, it is necessary that the stomach, the digestive glands and the intestines must produce various enzymes, including pepsin, and acid.