The present invention relates to novel quinoline derivatives of the formula ##STR1## which inhibit exogenously or endogenously stimulated gastric acid secretion and thus can be used in the prevention and treatment of gastrointestinal inflammatory diseases.