2-alkylamino-5- or 6-aralkyl-substituted benzazoles were synthesized and tested for histamineH2-receptorantagonist and anti-stress ulcer activities. These new compounds showed little or no histamineH2-receptorantagonist activity in contrast to imidazo[1,2-a]pyridineanalogues (I). On antiulcer assay, however, some pyridine derivatives (II) exerted higher activity than the reference compounds, sofalcone