The gut microbiota is important in the development and regulation of intestinal immunity. The intestinal immune system interacts with the gut microbiota and helps in maintaining normal gastrointestinal functions, and any alteration in gut microbiota may be associated with activation of mucosal immunity and cause inflammation. Intestinal infection with pathogenic bacteria results in a transient disruption of the resident gut microbiota which is a risk factor for IBS. Release of these inflammatory mediators are known to cause irritable bowel syndrome.