(1H-Pyrazol-1-yl)-, (1H-imidazol-1-yl)-, and (1H-1, 2, 4-triazol-1-yl)phrimidines were prepared and evaluated for cytoprotective antiulcer activity. Among them, 4-methoxy-6-methyl-2-(1H-pyrazol-1-yl)pyrimidine (18) showed potent inhibition of the HCl-ethanol-induced and water-immersion stress-induced ulcers in rats, as well as low acute toxicity.