This study aims to explore the protective effect of Albizia chinensis saponin on ethanol-induced acute gastric ulcer in rats and elucidate its mechanisms. SD rats were deprived of water for 24 hours before the experiment. The control group and model group were administered water by gavage, and the positive drug group received rabeprazole sodium solution(40 mg·kg~(-1)) by gavage. The experimental groups were given different doses of Albizia chinensis saponin solution(3, 10, and 30 mg·kg~(-1)). After 30 minutes, the control group received 1.5 mL of water by gavage, while the other groups were administered an equal volume of 95% ethanol for modeling. After six hours, the rats were killed by cervical dislocation, and the stomachs were collected. The ulcer area was measured, and the ulcer index was calculated. Hematoxylin-eosin(HE) staining was performed to assess histopathological changes in gastric tissue. Periodic acid-Schiff(PAS) staining was used to evaluate the distribution of gastric mucosal surface mucus. Enzyme-linked immunosorbent assay(ELISA) was employed to measure the levels of phospholipids and aminohexose in the gastric mucosa. Western blot was performed to determine the expression levels of the bicarbonate transporter, matrix metalloproteinase, and tight junction-associated proteins in gastric tissue. Immunohistochemistry(IHC) staining was conducted to quantify the number of positive cells for secreted mucin and tight junction-associated proteins. The results showed that the gastric tissue surface of rats in the control group was smooth without ulceration, and the gastric ulcer index of rats in the model group was 35±11. Albizia chinensis saponin at doses of 3, 10, and 30 mg·kg~(-1) resulted in inhibition rates of gastric ulcer of 46%(P<0.01), 85%(P<0.001), and 100%(P<0.001), respectively. Severe disruption of gastric mucosal structure and absence of the mucus layer were observed in the model group. Compared with the model group, the Albizia chinensis saponin group showed intact gastric mucosal surface mucus layer, significantly increased levels of phospholipids and aminohexose in the mucus, increased number of MUC5AC positive cells, and upregulated expression levels of the bicarbonate transporter SLC26A3 and CFTR. It also showed decreased phosphorylation of JNK and c-Jun, reduced expression levels of MMP-8, elevated expression of TIMP-1, and increased expression levels of Occludin and ZO-1. In conclusion, Albizia chinensis saponin enhances the function of the mucus-bicarbonate barrier by upregulating the content of MUC5AC, phospholipids, and aminohexose and increasing the expression levels of the bicarbonate transporter SLC26A3 and CFTR. Moreover, Albizia chinensis saponin exerts its protective effects on gastric ulcers by inhibiting the JNK signaling pathway to prevent excessive activation of MMP-8, thereby reducing the degradation of Occludin and ZO-1 and enhancing the mucosal barrier function. In summary, Albizia chinensis saponin exerts its anti-gastric ulcer effects by simultaneously enhancing the mucus barrier and the mucosal barrier.