Heterocyclic carbamates are disclosed which have potent gastric secretion inhibitory properties. The heterocyclic substituent is a pyridyl group or a 6-membered heterocycle with two nitrogen heteroatoms, which may be optionally substituted. Further substituents on the carbamate nitrogen and oxygen atoms are also disclosed. The compounds have profound effects on the inhibition of gastric secretions in the gastro-intestinal tract, and compositions for such uses are also disclosed.