Helicobacter pylori are able to survive and grow in the gastric mucosa due to the motility of the bacteria, its flagella, and its shape. The motility of H. pylori relies upon the flagella which is guided by the proton motive force. Not only do they provide motility, but they also have nodules on the ends of the flagella which give it the ability for adhesion. The shape of H. pylori is also what helps the bacteria move around easily in thick and sticky environments. Altogether, the motility of the bacteria, along with its shape, are what help H. pylori and give it the ability to adapt to the gastric mucus. Helicobacter pylori is able to greatly adapt to the acidic and low pH environment which is the reason why it is mostly found in the lining