A series of 2-[(2-imidazolylsulfinyl)methyl]anilines (2) having various substituents on their imidazole and aniline rings was synthesized and examined for their H+/K(+)-ATPase (adenosine triphosphatase) inhibitory effects and antisecretory activity against histamine-stimulated gastric acid secretions in Heidenhain pouch dogs. Although substitutions on the imidazole ring did not enhance biological activity, substitutions on the aniline ring by electron-donating substituents potently enhanced the enzyme inhibitory activity and also showed an inhibitory effect on histamine-stimulated gastric acid secretion after oral administration. In particular, the in vitro activity of the dimethyl (2u--w) and trimethyl (2ac) derivatives was about 10 times that of omeprazole. Also, 4-methyl (2k), 4-methoxy-5-methyl (2y) and 3,5-dimethyl-4-methoxy (2ab) derivatives showed a potent antisecretory effect of more than 80% after oral administration at 6 mg/kg. Although these aniline derivatives have relatively low stabilities in aqueous solution, replacement of the isobutyl group at the aniline nitrogen atom with N-(2-methoxyethyl) group enhanced the stability.