Certain bacterial infections have been linked to an increased risk of developing specific types of cancer. For example, Helicobacter pylori is a well-known bacterium associated with stomach cancer. This bacterium can cause chronic inflammation in the stomach lining, leading to ulcers and, in some cases, cancer. Similarly, chronic infection with Salmonella typhi has been associated with gallbladder cancer.