Sulfide and sulfoxide derivatives of substituted benzimidazoles inhibit acid formation in isolated gastric glands by different mechanisms.