The administration of nonsteroidal anti-inflammatory drugs (NSAIDs) may cause significant intestinal alteration and inflammation and lead to the occurrence of inflammatory diseases resembling duodenal ulcers. Astragaloside IV (AS-IV) is a glycoside of cycloartane-type triterpene isolated from the dried root of Astragalus membranaceus (Fisch.) Bge. (family Fabaceae), and has been used for ameliorating the NSAID-induced inflammation in the small intestine. The present study aimed to investigate the effects of AS-IV on indomethacin (IND)-induced inflammation in the small intestine of rats and its underlying mechanisms. Hematoxylin-eosin (H&E) staining, transmission and scanning electron microscopy were carried out to observe the surface morphology and ultrastructure of the small intestinal mucosa. Immunofluorescence and ELISA tests were employed to detect the expressions of NLRP3, ASC, caspase-1, and NF-κB proteins, as well as inflammatory factors IL-1β and IL-18, to uncover potential molecular mechanisms responsible for mitigating small intestinal inflammation. The results demonstrated that AS-IV significantly decreased the ulcer index, improved the surface morphology and microstructure of the small intestinal mucosa, and increased mucosal blood flow. Molecular docking revealed a strong and stable binding capacity of AS-IV to NLRP3, ASC, caspase-1, and NF-κB proteins. Further experimental validation exhibited that AS-IV markedly decreased levels of IL-1β and IL-18, and inhibited the protein expression of NLRP3, ASC, caspase-1, and NF-κB. Our data demonstrate that AS-IV ameliorates IND-induced intestinal inflammation in rats by inhibiting the activation of NLRP3 inflammasome and reducing the release of IL-1β and IL-18, thereby representing a promising therapy for IND-induced intestinal inflammation.