As part of our continuing search for bioactive natural products from plants, the present study was carried out in order to evaluate the gastroprotective properties of alkaloid extract and 2-phenylquinoline obtained from the bark of Galipea longiflora (Rutaceae). Anti-ulcer assays were performed using the following protocols in mice: nonsteroidal anti-inflammatory drug (NSAID)/bethanecol-induced ulcer, ethanol/HCl-induced ulcer, and stress-induced ulcer. The effects of the extract on gastric content volume, pH and total acidity were also evaluated, using the pylorus ligated model. Treatment using doses of 50, 125 and 250 mg/kg of G. longiflora alkaloid extract and positive controls (omeprazol or cimetidine) significantly diminished the lesion index, total lesion area, and percentage of lesion, in comparison with the negative control groups in all the models evaluated. Regarding the model of gastric secretion, a reduction in volume of gastric juice and total acidity was observed, as well as an increase in gastric pH. The main alkaloid of the plant, 2-phenylquinoline, was also evaluated in the ethanol-induced ulcer model. The results showed that at a dose of 50 mg/kg, it significantly inhibited ulcerative lesions. However, this effect was less than that of the alkaloid extract. All these results taken together show that G. longiflora displays gastroprotective activity, as evidenced by its significant inhibition of the formation of ulcers induced by different models. There are indications that mechanisms involved in anti-ulcer activity are related to a decrease in gastric secretion and an increase in gastric mucus content. Also, there is evidence of involvement of NO in the gastroprotector mechanisms. These effects may be attributed, at least in part, to the presence of some alkaloids, particularly 2-phenylquinoline.