The 100 trillion microbes in human gut coevolve with the host and exert significant influences on human health. The gut microbial composition presents dynamic changes correlated with various factors including host genotypes, age, and external environment. Effective manipulation of the gut microbiota through diets (both long-term and short-term diet patterns), probiotics and/or prebiotics, and antibiotics has been proved being potential to prevent from metabolic disorders such as obesity in many studies. The dietary regulation exerts influences on microbial metabolism and host immune functions through several pathways, of which may include selectively bacterial fermentation of nutrients, lower intestinal barrier function, overexpression of genes associated with disorders, and disruptions to both innate and adaptive immunity. Discoveries in the interrelationship between diet, intestinal microbiome, and body immune system provide us novel perceptions to the specific action mechanisms and will promote the development of therapeutic approaches for obesity.