The study presents structure‐activity considerations of a series of imidazo[1,2‐α]pyridiny‐2‐alkylaminobenzoxazoles (I) and 5,6,7,8‐tetahydroimidazo[1,2‐α]pyridinylbenzoxazoles (II) investigated for anti‐stress ulcer activity with the electron‐topological method. A series of 39 compounds including 24 active and 15 weakly active was studied. It is shown that the fragment determined by the electron‐topological method in an active molecule is responsible for anti‐stress ulcer activity. Quantitative structure‐activity relationships with electron topological approach of these compounds are discussed in terms of the statistical program STATGRAF‐7.0.