Steroid and painkiller abuse induced peptic ulcer disease, which causes abdominal pain, fullness, heartburn, and nausea. Medicinal plants have treated ulcers for centuries. We used Piper attenuatum ethanolic plant extracts for aspirin to induce ulcers in Wistar rats to test the leaf ethanolic extract's antiulcer properties. The control group is normal saline, the standard group is ranitidine (20 mg/kg), and the extract-treated groups are 100 mg/kg and 200 mg/kg ethanolic plant extracts. Ulcer Score, gastric juice volume, free and total acidity, ulcer index, ulcer protection, and pH were measured. The ulcer score was determined via rat stomach biopsies. Plant ethanolic extracts are gastroprotective. Only pH increased compared to the control group. Piper attenuatum ethanolic extract is the most gastroprotective at 200 mg/kg. Extracts were phytochemically and analytically assessed. Phytochemical screening demonstrates that plant extracts contain alkaloids, amides, glucose, proteins, glycosides, steroids, flavonoids, etc. This research suggests that phytoconstituents may have anti-ulcer potential, although structural elucidation of bioactive chemicals is needed. Molecular docking showed better binding affinity versus the 3D structure of pig gastric H+/K+ ATPase isoforms phytoconstituents Cepharadione A, Cepharadione B, Guineensine, Norcepharadione B, and Piperlonguminine. With these significant results, it may be a drug in the future.