A method and a composition comprising human milk oligosaccharides for decreasing the production of detrimental proteolytic metabolites such as ammonia and branched chain fatty acids in the intestinal microbiota of humans, which is useful for the treatment of brain-gut disorders like autism, stress, anxiety, and depressive disorders, are disclosed. Methods of treatment of colon cancer and liver damage are also disclosed.