Eat a nutritious diet that is high in fibre-rich foods: These include fruits, vegetables and whole grains. A high-fat, high-sugar, low-fibre diet is the primary suspect in killing some specific types of bacteria thus leaving your microbiota less diverse.