Ethnomedicinal studies in the Amazon community and in the Northeast region of Brazil highlight the use of Libidibia ferrea fruits for the treatment of gastric problems. However, there are no data in the literature of this pharmacological activity. Thus, the aim of this paper is to provide a scientific basis for the use of the dry extract of L. ferrea pods (DELfp) for the treatment of peptic ulcers. Phytochemical characterization was performed by HPLC/MS. In vitro antioxidant activity was assessed using DPPH, ABTS, phosphomolybdenum, and superoxide radical scavenging activity. The gastroprotective activity, the ability to stimulate mucus production, the antisecretory activity, and the influence of -SH and NO compounds on the antiulcerogenic activity of DELfp were evaluated. The healing activity was determined by the acetic acid-induced chronic ulcer model. Anti-Helicobacter pylori activity was investigated. HPLC/MS results identified the presence of phenolic compounds, gallic acid and ellagic acid, in DELfp. The extract showed antioxidant activity in vitro. In ulcers induced by absolute ethanol and acidified ethanol, the ED50 values of DELfp were 113 and 185.7 mg/kg, respectively. DELfp (100, 200, and 400 mg/kg) inhibited indomethacin-induced lesions by 66.7, 69.6, and 65.8%, respectively. DELfp (200 mg/kg) reduced gastric secretion and H+ concentration in the gastric contents and showed to be independent of nitric oxide (NO) and dependent on sulfhydryl (-SH) compounds in the protection of the gastric mucosa. In the chronic ulcer model, DELfp reduced the area of the gastric lesion. DELfp also showed anti-H. pylori activity. In conclusion, DELfp showed antioxidant, gastroprotective, healing, and antiulcerogenic activities. The mechanism of these actions seems to be mediated by different pathways and involves the reduction of gastric secretion and H+ concentration, dependence on sulfhydryl compounds, and anti-H. pylori activity. All these actions support the medicinal use of this species in the management of peptic ulcers.