Comparative study of the antiulcer and antisecretory activity of Asparagus racemosus Willd (Shatawari) and Withania somnifera Dunal (Ashwagandha) root extract with a standard drug, ranitidine, in various models of gastric ulcer in rats is presented. Ulcer was induced by the indomethacin (NSAID) and swim (restraint) stress treatment. Results demonstrated that A. racemosus as well as W. somnifera methanolic extract (100 mg/kg BW/day p.o.) given orally for 15 days significantly reduced the ulcer index, volume of gastric secretion, free acidity, and total acidity. A significant increase in the total carbohydrate and total carbohydrate/protein ratio was also observed. Study also indicated an increase in antioxidant defense, that is, enzymes superoxide dismutase, catalase, and ascorbic acid, increased significantly, whereas a significant decrease in lipid peroxidation was observed. A. racemosus was more effective in reducing gastric ulcer in indomethacin-treated gastric ulcerative rats, whereas W. somnifera was effective in stress-induced gastric ulcer. Results obtained for both herbal drugs were comparable to those of the standard drug ranitidine.