There are disclosed novel compounds described as aminoalkyl pyridine derivatives in which the aminoalkyl pyridine is connected to a guanidine moiety or a functional equivalent thereof, either directly or through a linear connecting group. Processes for the preparation of such compounds are also disclosed. The compounds are useful for the suppression of gastirc acid secretions in mammals and compositions for such uses are also disclosed.