With the imbalance of intestinal microbiota, the body will then face an inflammatory response, which has serious implications for human health. Bodily allergies, injury or pathogens infections can trigger or promote inflammation and alter the intestinal environment. Meanwhile, excessive changes in the intestinal environment cause the imbalance of microbial homeostasis, which leads to the proliferation and colonization of opportunistic pathogens, invasion of the body's immune system, and the intensification of inflammation. Some natural compounds and gut microbiota and metabolites can reduce inflammation; however, the details of how they interact with the gut immune system and reduce the gut inflammatory response still need to be fully understood. The review focuses on inflammation and intestinal microbiota imbalance caused by pathogens. The body reacts differently to different types of pathogenic bacteria, and the ingestion of pathogens leads to inflamed gastrointestinal tract disorders or intestinal inflammation. In this paper, unraveling the interactions between the inflammation, pathogenic bacteria, and intestinal microbiota based on inflammation caused by several common pathogens. Finally, we summarize the effects of intestinal metabolites and natural anti-inflammatory substances on inflammation to provide help for related research of intestinal inflammation caused by pathogenic bacteria.