Genetic predisposition plays a significant role in the development of celiac disease. The presence of HLA-DQ2 and HLA-DQ8 genes is necessary but not sufficient for the disease to manifest. Environmental factors, such as timing and quantity of gluten introduction in infancy, infections, and gut microbiota, also influence the risk.