Inflammatory bowel disease (IBD) is a heterogeneous group of disorders composed mainly of ulcerative colitis (UC) and Crohn's disease (CD) and undetermined IBD. The peak incidence of occurrence is mainly beyond the pediatric age group. Recent knowledge about genetic factors had been strongly linked to pediatric IBD (PIBD). Recent advances in genomic technologies have prompted the identification of genetic defects underlying rare, very early-onset IBD (VEO-IBD) as a disease subgroup noted especially in populations with higher consanguinity rates. A better understanding of key players in the complex homeostasis of the immune system in the gut and illustrating the relationships between intestinal microbiome, systemic immune dysregulation and primary immunodeficiency have received growing recognition over the years. In this article, we provide a review of the key players of the immunity of the gut, compare between adult and pediatric IBD as an interesting module to investigate the relationship between monogenic and multifactorial/polygenic diseases, list genetic mutations confirmed to be linked to VEO IBD and summarize the scientific work that led to the discovery of one of the monogenic mutations related to infantile colitis, namely IL10 and IL10 receptor defects.