Helicobacter pylori (H. pylori) is a type of bacteria that infects the stomach lining. It is the primary cause of gastritis and peptic ulcers in both adults and children. The bacteria can lead to chronic inflammation and is a risk factor for developing gastric cancer later in life.