Inflammatory bowel diseases (IBD), including colitis ulcerosa and Crohn’s disease, are chronic diseases of the gastrointestinal tract for which the cause has not been fully understood. However, it is known that the etiology is multifactorial. The multidirectional network of interactions of environmental, microbiological and genetic factors in predisposed persons lead to an excessive and insufficiently inhibited reaction of the immune system, leading to the development of chronic inflammation of the gastrointestinal walls, the consequence of which is the loss of the function that the intestine performs, inter alia, through the process of fibrosis. Detailed knowledge of the pathways leading to chronic inflammation makes it possible to pharmacologically modulate disorders and effectively treatthese diseases. In this review, we described the primary and adaptive immune system response in the gut and the known immune pathogenetic pathways leading to the development of IBD. We also described the process leading to intestinal tissue fibrosis, which is an irreversible consequence of untreated IBD.