Infection of gastric epithelial cells by H. pylori induces secretion of Gal-3 into the superficial mucus layer, and this is important for trapping bacteria in the mucus layer preventing attachment to and infection of epithelial cells. Here, LGALS3 is linked to infection.