The gut microbiota, which consists of all bacteria, viruses, fungus, and protozoa living in the intestine, and the immune system have co-evolved in a symbiotic relationship since the origin of the immune system. The bacterial community forming the microbiota plays an important role in the regulation of multiple aspects of the immune system. This regulation depends, among other things, on the production of a variety of metabolites by the microbiota. These metabolites range from small molecules to large macro-molecules. All types of immune cells from the host interact with these metabolites resulting in the activation of different pathways, which result in either positive or negative responses. The understanding of these pathways and their modulations will help establish the microbiota as a therapeutic target in the prevention and treatment of a variety of immune-related diseases.