We show here that the gastric glycoform of TFF2 is a calcium-independent lectin, which binds with high specificity to O-linked α1,4-GlcNAc-capped hexasaccharides on human and porcine stomach mucin.