Abstract The gut barrier is the first line of defense against harmful substances and pathogens in the intestinal tract. The balance of proliferation and apoptosis of intestinal epithelial cells (IECs) is crucial for maintaining the integrity of the intestinal mucosa and its function. However, oxidative stress and inflammation can cause DNA damage and abnormal apoptosis of the IECs, leading to the disruption of the intestinal epithelial barrier. This, in turn, can directly or indirectly cause various acute and chronic intestinal diseases. In recent years, there has been a growing understanding of the vital role of dietary ingredients in gut health. Studies have shown that certain amino acids, fibers, vitamins, and polyphenols in the diet can protect IECs from excessive apoptosis caused by oxidative stress, and limit intestinal inflammation. This review aims to describe the molecular mechanism of apoptosis and its relationship with intestinal function, and to discuss the modulation of IECs' physiological function, the intestinal epithelial barrier, and gut health by various nutrients. The findings of this review may provide a theoretical basis for the use of nutritional interventions in clinical intestinal disease research and animal production, ultimately leading to improved human and animal intestinal health.