The present invention relates to substituted imidazo[1,2-a]pyridines of formula I where R is -CH2COOH or -COOH, which inhibits exogenously or endogenously stimulated gastric acid secretion and can be used in the prevention and treatment of gastric acid related diseases and gastrointestinal inflammatory diseases.